From owner-freebsd-questions Wed Dec 13 17: 1:22 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 13 17:01:09 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.mail.yahoo.com (smtp2.mail.yahoo.com [128.11.68.32]) by hub.freebsd.org (Postfix) with SMTP id A6E8E37B400 for ; Wed, 13 Dec 2000 17:01:09 -0800 (PST) Received: from coird1-p26.telepac.pt (HELO raptor) (194.65.203.27) by smtp.mail.vip.suc.yahoo.com with SMTP; 14 Dec 2000 00:53:20 -0000 X-Apparently-From: Reply-To: From: "Ricardo Cosme" To: Subject: Problem with NAT (on PPP) Date: Thu, 14 Dec 2000 00:50:55 -0000 Message-ID: <000001c06567$f29ff520$0200a8c0@raptor> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C06567.F2A30260" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C06567.F2A30260 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello. I installed FreeBSD 4.2, default Kernel. I want to enable NAT through PPP to connect to the internet through my other windows boxes. The fact is that i can't make it work. I configures windows the way the manual told. Do I have to configure / install anything else on my FreeBSD box for the NAT to work ? My config files: rc.conf # Enable network daemons for user convenience. # -- sysinstall generated deltas -- # linux_enable="YES" sendmail_enable="NO" moused_port="/dev/cuaa0" moused_type="microsoft" moused_enable="NO" saver="logo" keyrate="fast" keymap="pt.iso" gateway_enable="YES" sshd_enable="YES" inetd_enable="YES" # -- sysinstall generated deltas -- # font8x8="swiss-8x8" font8x14="NO" font8x16="swiss-8x16" # -- sysinstall generated deltas -- # font8x8="NO" font8x14="NO" font8x16="NO" # -- sysinstall generated deltas -- # ifconfig_rl0="inet 192.168.0.1 netmask 255.255.255.0" hostname="kamikaze.home" ppp_enable="YES" ppp_mode="auto" ppp_nat="YES" ppp_profile="demand" ppp.conf default: ident user-ppp VERSION (built COMPILATIONDATE) # Ensure that "device" references the correct serial port # for your modem. (cuaa0 = COM1, cuaa1 = COM2) # set device /dev/cuaa0 set log Phase Chat LCP IPCP CCP tun command set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 set timeout 30 # 3 mintue idle timer (the default) add default HISADDR # Add a (sticky) default route enable dns # request DNS info (for resolv.conf) nat enable yes papchap: # # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. # set phone 671717000 set authname op13113 set authkey 12474946 interactive: set authname op13113 set authkey 12474946 set phone 671717000 set timeout 300 set openmode active accept chap demand: set authname op13113 set authkey 12474946 set phone 671717000 set timeout 300 set openmode active accept chap set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.0 add 0 0 127.2.2.2 ppp.linkup # This section is used for the "demand" configuration in # /etc/ppp/ppp.conf: demand: delete ALL add 0 0 HISADDR # # All other configurations in /etc/ppp/ppp.conf use this: # MYADDR: add 0 0 HISADDR ######################################################################## # End of /etc/ppp/ppp.linkup ifconfig -a rl0: flags=8843 mtu 1500 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::24f:4eff:fe06:459a%rl0 prefixlen 64 scopeid 0x1 ether 00:4f:4e:06:45:9a media: autoselect (none) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX lp0: flags=8810 mtu 1500 faith0: flags=8000 mtu 1500 gif0: flags=8010 mtu 1280 gif1: flags=8010 mtu 1280 gif2: flags=8010 mtu 1280 gif3: flags=8010 mtu 1280 lo0: flags=8049 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=8010 mtu 1500 sl0: flags=c010 mtu 552 tun0: flags=8010 mtu 1500 inet6 fe80::24f:4eff:fe06:459a%tun0 --> :: prefixlen 64 scopeid 0xb netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168/16 tun0 USc 0 0 tun0 192.168.0.2 0:4f:4e:6:3e:dd UHLW 1 101 rl0 1118 192.168.0.3 0:80:5f:70:41:6a UHLW 1 7567 rl0 963 192.168.0.255 ff:ff:ff:ff:ff:ff UHLWb 2 53 rl0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%rl0/64 link#1 UC rl0 fe80::%lo0/64 fe80::1%lo0 Uc lo0 fe80::%tun0/64 link#11 UC tun0 fe80::24f:4eff:fe06:459a%tun0 ::1 UH lo0 fe80::%tun1/64 link#12 UC tun1 fe80::24f:4eff:fe06:459a%tun1 ::1 UH lo0 ff01::/32 ::1 U lo0 ff02::%rl0/32 link#1 UC rl0 ff02::%lo0/32 fe80::1%lo0 UC lo0 ff02::%tun0/32 link#11 UC tun0 Do I need to configure / install anything else ? Thanks Cosme ------=_NextPart_000_0001_01C06567.F2A30260 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello.
 
I = installed FreeBSD=20 4.2, default Kernel. I want to enable NAT through PPP to connect to = the=20 internet through my other windows boxes. The fact is that i can't = make it=20 work. I configures windows the way the manual told. Do I have to = configure=20 / install anything else on my FreeBSD box for the NAT to work=20 ?
 
My = config=20 files:
 
rc.conf
# = Enable network=20 daemons for user convenience.
# -- sysinstall generated deltas --=20 #
linux_enable=3D"YES"
sendmail_enable=3D"NO"
moused_port=3D"/de= v/cuaa0"
moused_type=3D"microsoft"
moused_enable=3D"NO"
saver=3D= "logo"
keyrate=3D"fast"
keymap=3D"pt.iso"
gateway_enable=3D"YES"=
sshd_enable=3D"YES"
inetd_enable=3D"YES"
#=20 -- sysinstall generated deltas --=20 #
font8x8=3D"swiss-8x8"
font8x14=3D"NO"
font8x16=3D"swiss-8x16"<= BR># --=20 sysinstall generated deltas --=20 #
font8x8=3D"NO"
font8x14=3D"NO"
font8x16=3D"NO"
# -- = sysinstall generated=20 deltas -- #
ifconfig_rl0=3D"inet 192.168.0.1  netmask=20 255.255.255.0"
hostname=3D"kamikaze.home"
ppp_enable=3D"YES"
ppp= _mode=3D"auto"
ppp_nat=3D"YES"
ppp_profile=3D"demand"
=
 
ppp.conf
default:
 ident user-ppp VERSION = (built=20 COMPILATIONDATE)
 
 # Ensure that=20 "device" references the correct serial port
 # for your modem. = (cuaa0 =3D=20 COM1, cuaa1 =3D COM2)
 #
 set device=20 /dev/cuaa0
 
 set log Phase=20 Chat LCP IPCP CCP tun command
 set speed 115200
 set = dial "ABORT=20 BUSY ABORT NO\\sCARRIER TIMEOUT 5=20 \
           \"\" = AT=20 OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT = 40=20 CONNECT"
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0=20 0.0.0.0
 set timeout=20 30            = ;            = =20 # 3 mintue idle timer (the default)
 add default=20 HISADDR           =         =20 # Add a (sticky) default route
 enable=20 dns           &nbs= p;            = ;    =20 # request DNS info (for resolv.conf)
 nat enable = yes
 
papchap:
 
 #
 #=20 edit the next three lines and replace the items in caps with
 # = the=20 values which have been assigned by your = ISP.
 #
 
 set phone=20 671717000
 set authname op13113
 set authkey=20 12474946
 
interactive:
     = set=20 authname op13113
      set authkey=20 12474946
      set phone=20 671717000
      set timeout=20 300
      set openmode=20 active
      accept chap
 
demand:=20
      set authname=20 op13113
      set authkey=20 12474946
      set phone=20 671717000
      set timeout=20 300
      set openmode=20 active
      accept=20 chap
      set ifaddr 127.1.1.1/0 = 127.2.2.2/0=20 255.255.255.0
      add 0 0=20 127.2.2.2
 
ppp.linkup
    #=20 This section is used for the "demand" configuration = in
   =20 #  =20 /etc/ppp/ppp.conf:
demand:
      &nbs= p;=20 delete ALL
        add 0 0=20 HISADDR
    #
    # All other = configurations=20 in /etc/ppp/ppp.conf use this:
   =20 #
MYADDR:
        add 0 0=20 HISADDR
   =20 ########################################################################<= BR>   =20 # End of /etc/ppp/ppp.linkup
ifconfig=20 -a
rl0:=20 flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu=20 1500
        inet 192.168.0.1 = netmask=20 0xffffff00 broadcast = 192.168.0.255
       =20 inet6 fe80::24f:4eff:fe06:459a%rl0 prefixlen 64 scopeid 0x1=20
        ether 00:4f:4e:06:45:9a=20
        media: autoselect (none) = status:=20 active
        supported media: = autoselect=20 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex>=20 10baseT/UTP 100baseTX <hw-loopback>
lp0:=20 flags=3D8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
faith0:=20 flags=3D8000<MULTICAST> mtu 1500
gif0:=20 flags=3D8010<POINTOPOINT,MULTICAST> mtu 1280
gif1:=20 flags=3D8010<POINTOPOINT,MULTICAST> mtu 1280
gif2:=20 flags=3D8010<POINTOPOINT,MULTICAST> mtu 1280
gif3:=20 flags=3D8010<POINTOPOINT,MULTICAST> mtu 1280
lo0:=20 flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu=20 16384
        inet6 fe80::1%lo0 = prefixlen=20 64 scopeid 0x8
        inet6 ::1=20 prefixlen 128
        inet = 127.0.0.1=20 netmask 0xff000000
ppp0: flags=3D8010<POINTOPOINT,MULTICAST> = mtu=20 1500
sl0: flags=3Dc010<POINTOPOINT,LINK2,MULTICAST> mtu = 552
tun0:=20 flags=3D8010<POINTOPOINT,MULTICAST> mtu=20 1500
        inet6=20 fe80::24f:4eff:fe06:459a%tun0 --> :: prefixlen 64 scopeid 0xb=20
netstat=20 -rn
Routing=20 tables
 
Internet:
Destination   &nbs= p;   =20 Gateway           = =20 Flags     Refs    =20 Use     Netif=20 Expire
127.0.0.1         = =20 127.0.0.1         =20 UH         =20 0        = 0     =20 lo0
192.168/16        =20 tun0           &nb= sp;  =20 USc        =20 0        0    =20 tun0
192.168.0.2       =20 0:4f:4e:6:3e:dd    = UHLW       =20 1      101     =20 rl0   = 1118
192.168.0.3       =20 0:80:5f:70:41:6a   = UHLW       =20 1     7567     =20 rl0    963
192.168.0.255      = ff:ff:ff:ff:ff:ff  UHLWb      =20 2       53     =20 rl0
 
Internet6:
Destination   &nb= sp;           &nbs= p;      =20 Gateway           =            =20 Flags      Netif=20 Expire
::1          =             &= nbsp;       =20 ::1           &nbs= p;            = ;  =20 UH         =20 lo0
fe80::%rl0/64         = ;           =20 link#1           &= nbsp;           =20 UC         =20 rl0
fe80::%lo0/64         = ;           =20 fe80::1%lo0          &n= bsp;       =20 Uc         =20 lo0
fe80::%tun0/64        &nbs= p;          =20 link#11           =            =20 UC        =20 tun0
fe80::24f:4eff:fe06:459a%tun0    =20 ::1           &nbs= p;            = ;  =20 UH         =20 lo0
fe80::%tun1/64        &nbs= p;          =20 link#12           =            =20 UC        =20 tun1
fe80::24f:4eff:fe06:459a%tun1    =20 ::1           &nbs= p;            = ;  =20 UH         =20 lo0
ff01::/32         &nb= sp;           &nbs= p;  =20 ::1           &nbs= p;            = ;  =20 U          =20 lo0
ff02::%rl0/32         = ;           =20 link#1           &= nbsp;           =20 UC         =20 rl0
ff02::%lo0/32         = ;           =20 fe80::1%lo0          &n= bsp;       =20 UC         =20 lo0
ff02::%tun0/32        &nbs= p;          =20 link#11           =            =20 UC         = tun0
 
 
Do I = need to=20 configure / install anything else ?
 
Thanks
Cosme
------=_NextPart_000_0001_01C06567.F2A30260-- __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message