Anda di halaman 1dari 2

KONFIGURASI GATEWAY INTERNET

1. EDIT FILE SYSCTL.CONF


pico /etc/sysctl.conf
 Hapus simbol # pada baris #net.ipv4.ip_forward
 Setelah itu simpan
 Kemudian restart dengan perintah sysctl -p
 Selanjutnya jalankan perintah NAT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
2. Lanjutan konfigurasi Proxy
 Setelah selesai edit konfigurasi squit, lakukan restart squid
service squid3 restart
 Jalankan perintah routing table squid
iptables -t nat -A PREROUTING -p tcp -i eth1 -s subnet_eth1/24 - -
dport 80 -j REDIRECT - -to-port 3128

Anda mungkin juga menyukai