Iptables tiba-tiba tidak active

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
newbei
Posts: 80
Joined: 14 Jan 2013, 09:58

Iptables tiba-tiba tidak active

Postby newbei » 24 Jan 2014, 14:46

Mohon bantuannya teman2.
Saya ngak tahu error nya di mana. Tiba2 settingan iptables tidak active.
Ini konfigurasi iptables nya:

echo 1 > /proc/sys/net/ipv4/ip_forward
## iptables -I PREROUTING -t nat -i eth1 -j DROP
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -I FORWARD -m mac --mca-source 48:5B:39:98:3E:91 -j DROP
iptables -I FORWARD -m mac --mac-source 1C:6F:65:64:EE:C5 -j DROP
iptables -I FORWARD -m mac --mac-source 48:5B:39:97:14:D5 -j DROP
iptables -I FORWARD -m mac --mac-source 1C:6F:65:69:21:F2 -j DROP
iptables -I FORWARD -m mac --mac-source 1C:6F:65:64:EE:D4 -j DROP
iptables -I FORWARD -m mac --mac-source 1C:6F:65:67:F7:E1 -j DROP
iptables -I FORWARD -m mac --mac-source 1C:6F:65:69:18:DA -j DROP
iptables -I FORWARD -m mac --mac-source 1C:6F:65:65:52:98 -j DROP
iptables -I FORWARD -m mac --mac-source 48:5B:39:98:4C:40 -j DROP
iptables -I FORWARD -m mac --mac-source 1C:6F:65:67:F4:98 -j DROP
iptables -I FORWARD -m mac --mac-source 50:E5:49:D8:D9:3C -j DROP
iptables -I FORWARD -m mac --mac-source 1C:6F:65:69:23:90 -j DROP

exit 0

#iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
REDIRECT tcp -- anywhere anywhere tcp dpt:http redir ports 3128

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere

Saya tidak pernah ubah2 konfigurasi nya.
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Iptables tiba-tiba tidak active

Postby q_p » 24 Jan 2014, 20:25

Sudah disimpan di /etc/rc.local ?
User avatar
newbei
Posts: 80
Joined: 14 Jan 2013, 09:58

Re: Iptables tiba-tiba tidak active

Postby newbei » 25 Jan 2014, 12:06

Sudah saya disimpan di /etc/rc.local
Konfigurasi nya, pada awalnya jalan lancar mas. Tetapi akhir2 ini aja tidak jalan lagi. Sementara konfigurasi tidak di utak atik.


q_p wrote:Sudah disimpan di /etc/rc.local ?

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 0 guests