From owner-freebsd-net Tue Dec 4 7:23:39 2001 Delivered-To: freebsd-net@freebsd.org Received: from richard.eu.org (adsl-213-190-39-183.takas.lt [213.190.39.183]) by hub.freebsd.org (Postfix) with ESMTP id CCC8837B405 for ; Tue, 4 Dec 2001 07:23:19 -0800 (PST) Received: (from rch@localhost) by richard.eu.org (8.11.0/8.11.0) id fB4FMrc08001 for freebsd-net@FreeBSD.ORG; Tue, 4 Dec 2001 17:22:53 +0200 (EET) (envelope-from rch@richard.eu.org) Date: Tue, 4 Dec 2001 17:22:48 +0200 From: Richard =?utf-8?B?xIxlcGFz?= To: freebsd-net@FreeBSD.ORG Subject: ppp and "nat port" on single host Message-ID: <20011204172248.A7767@richard.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.3.19i X-OS: FreeBSD 4.4-STABLE i386 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I have a pppoe connection with dynamic IP address. ppp works fine but address translation doesn't, i.e. I can't connect to 213.190.39.183:80. I don't want to run apache on tun0 as it is dynamic. Is there some solution? ppp.conf: nat enable yes #nat log yes nat port tcp 127.0.0.3:80 80 ifconfig -a ed0: flags=8843 mtu 1500 inet 192.168.100.1 netmask 0xffffff00 broadcast 192.168.100.255 inet6 fe80::250:bfff:fe2b:38b2%ed0 prefixlen 64 scopeid 0x1 ether 00:50:bf:2b:38:b2 lp0: flags=8810 mtu 1500 sl0: flags=c010 mtu 552 lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 inet 127.0.0.3 netmask 0xff000000 inet 127.0.0.4 netmask 0xff000000 inet 127.0.0.5 netmask 0xff000000 ppp0: flags=8010 mtu 1500 tun0: flags=8051 mtu 1492 inet6 fe80::250:bfff:fe2b:38b2%tun0 prefixlen 64 scopeid 0x6 inet 213.190.39.183 --> 213.190.39.1 netmask 0xffffff00 Opened by PID 7752 Messages looks like this: Dec 4 15:21:01 richard ppp[6632]: tun0: Debug: proto_LayerPull: unknown -> 0x0021 Dec 4 15:21:01 richard ppp[6632]: tun0: Debug: nat_LayerPull: PROTO_IP -> PROTO_IP Dec 4 15:21:01 richard ppp[6632]: tun0: Debug: link_PullPacket: Despatch proto 0x0021 Dec 4 15:21:01 richard ppp[6632]: tun0: TCP/IP: IN UDP: 212.59.0.1:53 ---> 213.190.39.55:1853 (161/189) Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: timer_Start: Inserting idle timer[0x80a9614] Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: tun: fdset(r) 6 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: deflink(ctrl): fdset(r) 0 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: deflink: fdset(r) 1 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: deflink: fdset(e) 1 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: server: fdset(r) 9 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: Select returns 1 Dec 4 15:21:01 richard ppp[6632]: tun0: Debug: Looped back packet addressed to myself Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: tun: fdset(r) 6 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: deflink(ctrl): fdset(r) 0 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: deflink: fdset(r) 1 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: deflink: fdset(e) 1 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: server: fdset(r) 9 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: Select returns 1 Dec 4 15:21:01 richard ppp[6632]: tun0: Debug: Looped back packet addressed to myself Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: tun: fdset(r) 6 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: deflink(ctrl): fdset(r) 0 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: deflink: fdset(r) 1 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: deflink: fdset(e) 1 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: server: fdset(r) 9 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: Select returns -1 Dec 4 15:21:01 richard ppp[6632]: tun0: Timer: timer_Start: Inserting physical throughput timer[0x80b5068] before hdlc timer[0x80b7d90], delta = 6 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message