>>вот вариан попроще -redirect_port
>>смотри man natd
>
>
>доку на опеннет смотрел - по ней собстно и делал. О чем
>и доложил выше.
>попробовал все убрать - только natd -p 8888 -n tun0 -redirect_port tcp
>192.168.1.1:80 8080. ну и инкаминг 8080 открыл ессно....
>И ничего...
Отрывок из мануала natd:
This program provides a Network Address Translation facility for use with
divert(4) sockets under FreeBSD. It is intended for use with NICs - if
you want to do NAT on a PPP link, use the -nat switch to ppp(8).
Отрывок из мануала ppp:
NETWORK ADDRESS TRANSLATION (PACKET ALIASING)
The -nat command line option enables network address translation (a.k.a.
packet aliasing). This allows the ppp host to act as a masquerading
gateway for other computers over a local area network. Outgoing IP packets are NAT'd so that they appear to come from the ppp host, and incoming packets are de-NAT'd so that they are routed to the correct machine on the local area network. NAT allows computers on private, unregistered subnets to have Internet access, although they are invisible from the outside world. In general, correct ppp operation should first be verified with network address translation disabled. Then, the -nat
option should be switched on, and network applications (web browser, telnet(1), ftp(1), ping(8), traceroute(8)) should be checked on the ppp host. Finally, the same or similar applications should be checked on other computers in the LAN. If network applications work correctly on the ppp host, but not on other machines in the LAN, then the masquerading softare is working properly, but the host is either not forwarding or possibly receiving IP packets. Check that IP forwarding is enabled in
/etc/rc.conf and that other machines have designated the ppp host as the
gateway for the LAN.
Т.е. натить нужно средствами самого ppp, а не с помощью natd+ipfw.
man ppp