Difference between revisions of "NAT MASQUARADE"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | Untuk melakukan masquarade kita menggunakan perintah berikut (dengan asumsi sambungan ke Internet melalui usb0) | |
echo 1 > /proc/sys/net/ipv4/ip_forward | echo 1 > /proc/sys/net/ipv4/ip_forward | ||
iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE | iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE | ||
+ | |||
+ | Jika LAN menuju ke Internet mengggunakan eth0 | ||
+ | |||
+ | echo 1 > /proc/sys/net/ipv4/ip_forward | ||
+ | iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | ||
+ | |||
==Pranala Menarik== | ==Pranala Menarik== |
Revision as of 08:47, 13 May 2013
Untuk melakukan masquarade kita menggunakan perintah berikut (dengan asumsi sambungan ke Internet melalui usb0)
echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE
Jika LAN menuju ke Internet mengggunakan eth0
echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE