Iptables tiba-tiba tidak active

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
Post Reply
User avatar
newbei

Iptables tiba-tiba tidak active

Post 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
Contact:

Post 24 Jan 2014, 20:25

Sudah disimpan di /etc/rc.local ?


User avatar
newbei

Post 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 ?


Post Reply

Who is online

Users browsing this forum: No registered users and 52 guests