setting ip lan terlebih dahulu
# ifconfig eth0 x.x.x.1==> jika interface lan nya eth0 lalu # iptables -t nat -A POSTROUTING -s x.x.x.2 -j MASQUERADE # iptables -A FORWARD -s x.x.x.2 -j ACCEPT # echo 1 >/proc/sys/net/ipv4/ip_forward
Linux Client :
setting ip la :
# ifconfig eth0 x.x.x.2 # route add default gateway 192.168.0.1
Tidak ada komentar:
Posting Komentar