[69@localhost ane]# iptables -v
iptables v1.4.5
Betewe latest version 1.4.9.1
Oke langsung aja.
*mangle
:PREROUTING ACCEPT [10747:7845067]
:INPUT ACCEPT [10747:7845067]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [11276:5350344]
:POSTROUTING ACCEPT [11276:5350344]
COMMIT
*nat
:PREROUTING ACCEPT [170:11288]
:POSTROUTING ACCEPT [1213:65982]
:OUTPUT ACCEPT [1213:65982]
-A PREROUTING ! -s 192.168.5.2/32 -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.5.2:3128
COMMIT
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
:INBOUND - [0:0]
:LOG_FILTER - [0:0]
:LSI - [0:0]
:LSO - [0:0]
:OUTBOUND - [0:0]
-A INPUT -s 202.134.1.10/32 -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A INPUT -s 202.134.1.10/32 -p udp -j ACCEPT
-A INPUT -s 202.134.1.7/32 -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A INPUT -s 202.134.1.7/32 -p udp -j ACCEPT
-A INPUT -s 192.168.1.1/32 -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A INPUT -s 192.168.1.1/32 -p udp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -m limit --limit 10/sec-j ACCEPT
-A INPUT -d 255.255.255.255/32 -i eth0 -j DROP
-A INPUT -d 192.168.5.255/32 -j DROP
-A INPUT -s 224.0.0.0/8 -j DROP
-A INPUT -d 224.0.0.0/8 -j DROP
-A INPUT -s 255.255.255.255/32 -j DROP
-A INPUT -d 0.0.0.0/32 -j DROP
-A INPUT -m state --state INVALID -j DROP
-A INPUT -f -m limit --limit 10/min -j LSI
-A INPUT -i eth0 -j INBOUND
-A INPUT -j LOG_FILTER
-A INPUT -j LOG --log-prefix "GeJe Mlebu" --log-level 6
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A FORWARD -p icmp -m limit --limit 10/sec -j ACCEPT
-A FORWARD -j LOG_FILTER
-A FORWARD -j LOG --log-prefix "GeJe Liwat" --log-level 6
-A FORWARD -s 192.168.3.0/24 -j ACCEPT
-A FORWARD -s 192.168.4.0/24 -j ACCEPT
-A FORWARD -s 192.168.5.0/24 -j ACCEPT
-A OUTPUT -s 192.168.5.2/32 -d 202.134.1.10/32 -p tcp -m tcp --dport 53 -j ACCEPT
-A OUTPUT -s 192.168.5.2/32 -d 202.134.1.10/32 -p udp -m udp --dport 53 -j ACCEPT
-A OUTPUT -s 192.168.5.2/32 -d 202.134.1.7/32 -p tcp -m tcp --dport 53 -j ACCEPT
-A OUTPUT -s 192.168.5.2/32 -d 202.134.1.7/32 -p udp -m udp --dport 53 -j ACCEPT
-A OUTPUT -s 192.168.5.2/32 -d 192.168.1.1/32 -p tcp -m tcp --dport 53 -j ACCEPT
-A OUTPUT -s 192.168.5.2/32 -d 192.168.1.1/32 -p udp -m udp --dport 53 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -s 224.0.0.0/8 -j DROP
-A OUTPUT -d 224.0.0.0/8 -j DROP
-A OUTPUT -s 255.255.255.255/32 -j DROP
-A OUTPUT -d 0.0.0.0/32 -j DROP
-A OUTPUT -m state --state INVALID -j DROP
-A OUTPUT -o eth0 -j OUTBOUND
-A OUTPUT -j LOG_FILTER
-A OUTPUT -j LOG --log-prefix "GeJe Metu" --log-level 6
-A OUTPUT -o lo -j ACCEPT
-A INBOUND -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INBOUND -p udp -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INBOUND -s 192.168.3.0/24 -j ACCEPT
-A INBOUND -s 192.168.4.0/24 -j ACCEPT
-A INBOUND -s 192.168.5.0/24 -j ACCEPT
-A INBOUND -p tcp -m tcp --dport 53 -j ACCEPT
-A INBOUND -p udp -m udp --dport 53 -j ACCEPT
-A INBOUND -p tcp -m tcp --dport 3128 -j ACCEPT
-A INBOUND -p udp -m udp --dport 3128 -j ACCEPT
-A INBOUND -j LSI
-A LSI -j LOG_FILTER
-A LSI -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m limit --limit 1/sec -j LOG --log-prefix "Mlebu " --log-level 6
-A LSI -p tcp -m tcp --tcp-flagsFIN,SYN,RST,ACK SYN -j DROP
-A LSI -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK RST -m limit --limit 1/sec -j LOG --log-prefix "Mlebu " --log-level 6
-A LSI -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK RST -j DROP
-A LSI -p icmp -m icmp --icmp-type 8 -m limit --limit 1/sec -j LOG --log-prefix "Mlebu " --log-level 6
-A LSI -p icmp -m icmp --icmp-type 8 -j DROP
-A LSI -m limit --limit 5/sec -j LOG --log-prefix "Mlebu " --log-level 6
-A LSI -j DROP
-A LSO -j LOG_FILTER
-A LSO -m limit --limit 5/sec -j LOG --log-prefix "Metu " --log-level 6
-A LSO -j REJECT --reject-with icmp-port-unreachable
-A OUTBOUND -p icmp -j ACCEPT
-A OUTBOUND -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTBOUND -p udp -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTBOUND -j ACCEPT
COMMIT
broken vpn connection ?
-A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
Opsi lain silahkan disesuaikan kebutuhan agan. HTH
-ghopal-
Comments (0)
Post a Comment