yanzai
求助路由拨pptp
ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:9e:38:64
inet addr:192.168.0.254 Bcast:192.168.1.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:729771032 errors:0 dropped:0 overruns:0 frame:0
TX packets:804768002 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:218718026364 (203.6 GiB) TX bytes:614821207760 (572.5 GiB)
eth1 Link encap:Ethernet HWaddr 00:19:5b:8a:c5:11
inet addr:121.9.230.* Bcast:121.9.230.* Mask:255.255.255.*
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:843957563 errors:0 dropped:0 overruns:0 frame:0
TX packets:653606989 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:649258059746 (604.6 GiB) TX bytes:148453506871 (138.2 GiB)
Interrupt:17
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.4.1 P-t-P:192.168.4.254 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1496 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:72 (72.0 B) TX bytes:78 (78.0 B)
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.4.254 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
121.9.230.* 0.0.0.0 255.255.255.* U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
0.0.0.0 121.9.230.* 0.0.0.0 UG 0 0 0 eth1
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
我刚刚拨通的vpn 怎么让内网192.168.0.58 这个IP通过vpn上网?