- 论坛徽章:
- 0
|
做了Nat后,外网ping不通,内网可以ping通。但是上不了网
uaspx# ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>; mtu 1500
options=3<rxcsum,txcsum>;
inet 192.168.0.253 netmask 0xffffff00 broadcast 192.168.0.255
ether 00:01:02:56:83:6d
media: Ethernet autoselect (100baseTX <full-duplex>
status: active
xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>; mtu 1500
options=3<rxcsum,txcsum>;
inet 222.82.248.134 netmask 0xffffff00 broadcast 222.82.248.255
ether 00:01:02:56:83:8e
media: Ethernet autoselect (none)
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST>; mtu 16384
inet 127.0.0.1 netmask 0xff000000
说明一下:因为要正常工作,不通的时候代理我用的是2k的
xl0的ip也就只能改成192.168.0.253,route也改成192168.0.1
uaspx# ipnat -l
List of active MAP/Redirect filters:
map xl1 192.168.0.0/24 ->; 222.82.248.134/32 proxy port ftp ftp/tcp
map xl1 192.168.0.0/24 ->; 222.82.248.134/32 portmap tcp/udp auto
map xl1 192.168.0.0/24 ->; 222.82.248.134/32
List of active sessions:
uaspx# ipfstat -io
empty list for ipfilter(out)
empty list for ipfilter(in)
我在编译内核的时候
#options IPFIREWALL
#options IPFIREWALL_VERBOSE
#options IPFIREWALL_VERBOSE_LIMIT=90
#options IPFIREWALL_DEFAULT_TO_ACCEPT
#options IPDIVERT |
|