Menu Home

iptables 代理上网


iptables 代理上网

OS : opensuse 11.4

需求

eth0 (出外网) : 192.168.1.105   gataway : 192.168.1.1
wlan0 : 192.168.8.1

解决方法

echo 1 > /proc/sys/net/ipv4/ip_forward
iptabes -t nat -A POSTROUTING -o eth0 -s 192.168.80/24 -j SNAT --to 192.168.1.105

Categories: linux 系统管理 网络

Tagged as:

lnmcc

Leave a Reply

Your email address will not be published.