Date: Tue, 4 Dec 2001 17:22:48 +0200 From: Richard =?utf-8?B?xIxlcGFz?= <rch@richard.eu.org> To: freebsd-net@FreeBSD.ORG Subject: ppp and "nat port" on single host Message-ID: <20011204172248.A7767@richard.eu.org>
next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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<POINTOPOINT,MULTICAST> mtu 1500
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011204172248.A7767>
