Date: Wed, 24 May 2000 14:44:14 -0400 From: Andrew Bogecho <andrewb@cs.mcgill.ca> To: Brian Somers <brian@Awfulhak.org> Cc: freebsd-net@freebsd.org Subject: Re: ppp and nat Message-ID: <20000524144414.H2003@cs.mcgill.ca> In-Reply-To: <200005241659.RAA89074@hak.lan.Awfulhak.org>; from Brian Somers on Wed, May 24, 2000 at 05:59:40PM %2B0100 References: <andrewb@cs.mcgill.ca> <200005241659.RAA89074@hak.lan.Awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Wed May 24 14:41:32 EDT 2000 Thank you for the quick reply. My alias.log file really did not help much. All it had were lines like the following: file: /var/log/alias.log icmp=0, udp=1, tcp=4, frag_id=0 frag_ptr=0 / tot=5 (sock=0) icmp=0, udp=1, tcp=3, frag_id=0 frag_ptr=0 / tot=4 (sock=0) icmp=0, udp=2, tcp=3, frag_id=0 frag_ptr=0 / tot=5 (sock=0) icmp=0, udp=1, tcp=3, frag_id=0 frag_ptr=0 / tot=4 (sock=0) icmp=0, udp=1, tcp=4, frag_id=0 frag_ptr=0 / tot=5 (sock=0) icmp=0, udp=2, tcp=4, frag_id=0 frag_ptr=0 / tot=6 (sock=0) icmp=0, udp=2, tcp=3, frag_id=0 frag_ptr=0 / tot=5 (sock=0) icmp=0, udp=2, tcp=4, frag_id=0 frag_ptr=0 / tot=6 (sock=0) icmp=0, udp=2, tcp=3, frag_id=0 frag_ptr=0 / tot=5 (sock=0) icmp=0, udp=1, tcp=3, frag_id=0 frag_ptr=0 / tot=4 (sock=0) icmp=0, udp=2, tcp=3, frag_id=0 frag_ptr=0 / tot=5 (sock=0) icmp=0, udp=3, tcp=3, frag_id=0 frag_ptr=0 / tot=6 (sock=0) icmp=0, udp=4, tcp=3, frag_id=0 frag_ptr=0 / tot=7 (sock=0) icmp=0, udp=4, tcp=4, frag_id=0 frag_ptr=0 / tot=8 (sock=0) icmp=0, udp=5, tcp=4, frag_id=0 frag_ptr=0 / tot=9 (sock=0) icmp=0, udp=6, tcp=4, frag_id=0 frag_ptr=0 / tot=10 (sock=0) icmp=0, udp=7, tcp=4, frag_id=0 frag_ptr=0 / tot=11 (sock=0) icmp=0, udp=8, tcp=4, frag_id=0 frag_ptr=0 / tot=12 (sock=0) icmp=0, udp=9, tcp=4, frag_id=0 frag_ptr=0 / tot=13 (sock=0) icmp=0, udp=10, tcp=4, frag_id=0 frag_ptr=0 / tot=14 (sock=0) icmp=0, udp=11, tcp=4, frag_id=0 frag_ptr=0 / tot=15 (sock=0) icmp=0, udp=12, tcp=4, frag_id=0 frag_ptr=0 / tot=16 (sock=0) ..... etc. I know that doesn't help much. I was mainly worried that I had something wrong in m ppp.conf. Do I need a special section for the nat area. Or does the file look ok? Thanks again for your help. Andrew. On Wed, May 24, 2000 at 05:59:40PM +0100, Brian Somers wrote: > Hi, > > What does /var/log/alias.log say about port 80 traffic ? > > > Wed May 24 12:37:53 EDT 2000 > > > > Hi all, > > > > I asked about this three weeks ago on questions, but got no responses. > > Hopefully, some here might be able to help me. > > > > Here goes: > > > > I am using FreeBSD 4.0-RELEASE > > > > I have been having a big problem with my internal network. I am using > > PPPoE. Below is my configuration file. I must say that everything > > works, other than port forwarding. I only have one forwarding line, and > > no matter what I have tried I cannot get it to work. Any help would be > > appreciated. > > > > # /etc/ppp/ppp.conf - beginning > > # > > # PPP Version 2.26 - Mar 20 2000 > > # > > > > default: > > set device PPPoE:dc0 > > set MRU 1492 > > set MTU 1492 > > set authname ********@sympatico.ca > > set authkey ******** > > set log Phase tun command > > set dial > > set login > > set ifaddr 10.0.0.1/0 10.0.0.2/0 > > add default HISADDR > > set cd 5 > > set crtscts off > > # Only added the line below so that I could use pppctl > > set server /var/run/internet "" 0177 > > > > # Comments were removed when I was testing > > # alias enable yes > > # alias port tcp 192.168.1.21:80 80 > > # alias log yes > > > > # nat enable yes > > # nat port tcp 192.168.1.21:80 80 > > # nat log yes > > > > papchap: > > > > set authname ********@sympatico.ca > > set authkey ******** > > > > ##### > > # /etc/ppp/ppp.conf - end > > > > Please note that I tried both the alias version and the nat version to > > no avail. I do have a network connection from my internal network out, > > but I cannot get the port forwarding. Below is my netstat table: > > > > Routing tables > > > > Internet: > > Destination Gateway Flags Netif Expire > > 0/24 link#1 UC dc0 => > > default 64.228.205.1 UGSc tun0 > > 64.228.205.1 64.228.205.204 UH tun0 > > 127.0.0.1 127.0.0.1 UH lo0 > > 192.168.1 link#2 UC xl0 => > > 192.168.1.10 0:a0:c:c1:65:bf UHLW xl0 684 > > 192.168.1.11 0:0:e2:29:b6:b1 UHLW xl0 433 > > 192.168.1.26 0:a0:c:c1:67:2 UHLW xl0 943 > > 192.168.1.30 0:a0:c:c1:65:bf UHLW xl0 1175 > > 192.168.1.248 0:10:4b:7a:53:58 UHLW xl0 1180 > > 192.168.1.249 0:a0:c:c1:46:be UHLW xl0 1140 > > > > My /sbin/ifconfig -a > > > > dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > > inet 0.0.0.0 netmask 0xffffff00 broadcast 0.0.0.255 > > ether 00:a0:0c:c1:42:8b > > media: autoselect (10baseT/UTP) status: active > > supported media: autoselect 100baseTX <full-duplex> 100baseTX > > 10baseT/UT > > P <full-duplex> 10baseT/UTP 100baseTX <hw-loopback> none > > xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1492 > > inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 > > inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 > > inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255 > > ether 00:10:4b:13:7e:6a > > media: autoselect (100baseTX <full-duplex>) status: active > > supported media: autoselect 100baseTX <full-duplex> 100baseTX > > 10baseT/UT > > P <full-duplex> 10baseT/UTP 100baseTX <hw-loopback> > > lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 > > sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552 > > ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 > > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 > > inet 127.0.0.1 netmask 0xff000000 > > gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 > > gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 > > gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 > > gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 > > stf0: flags=8000<MULTICAST> mtu 1280 > > faith0: flags=8000<MULTICAST> mtu 1500 > > tun0: flags=8151<UP,POINTOPOINT,RUNNING,PROMISC,MULTICAST> mtu 1492 > > inet 64.228.205.204 --> 64.228.205.1 netmask 0xff000000 > > Opened by PID 576 > > > > netstat does not show the port as open. > > > > > > I have also tried using pppctl and typing in the commands by hand, but > > have had no luck. Am I missing something? is my ppp.conf file somehow > > wrong? > > > > Thanks in advance for all those that try to help. > > > > Andrew. > > -- > Brian <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org> > <http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org> > Don't _EVER_ lose your sense of humour ! > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000524144414.H2003>