Здравствуйте. Настроил шлюз во FreeBSD для второй машины - с нее пингуются любые ресурсы, а вот в инет выйти не может.Конфигурация:
gateway 192.168.0.1
PC 1 192.168.0.2
Network
nve0 192.168.0.1
xl0 10.10.x.x
pppoe соединение tun0 via xl0
natd -n tun0
IPFW
00330 allow tcp from any to any via tun0 established
00330 allow ip from any to any via nve0
00331 divert 8668 ip from any to any via tun0
00332 reset log logamount 10 tcp from any to any dst-port 113 in recv tun0
00332 allow udp from any to 192.168.0.2 dst-port 53 out xmit tun0
00340 divert 8668 ip from 192.168.0.0/24 to any out xmit tun0
00340 divert 8668 ip from 192.168.0.1 to any out xmit tun0
00340 divert 8668 ip from 192.168.0.2 to any out xmit tun0
00340 divert 8668 ip from any to x.x.x.x in recv tun0
00400 divert 8668 ip from 192.168.0.2 to any via tun0
00400 divert 8668 ip from 192.168.0.1 to any via tun0
00400 divert 8668 ip from any to 192.168.0.2 via tun0
00400 divert 8668 ip from any to 192.168.0.1 via tun0
65000 allow ip from any to any
65535 deny ip from any to any
Заодно может подскажете что тут лишнее.