Gateway server iptables script (filter worm)

xiaoxiao2021-03-06  57

[root @ laacl-001 ~] $ cat / root / ipt / gatewayservice iptables stop

iptables -t nat -a posteing -s 192.168.103.0/24 -o eth0 -j snat --to 202.115.169.56iptables -a forward -m state --state established, Related -j Accept

# 4444/445/69/135 / 139iptables -a forward -p tcp --dport 4444 -j dropiptables -a forward -p udp --dport 4444 -j drop

iptables -a forward -p tcp --dport 445 -j dropiptables -a forward -p udp --dport 445 -j drop

iptables -a forward -p tcp --dport 69 -j dropipiptables -a forward -p udp --dport 69 -j drop

iptables -a forward -p tcp --dport 135 -j dropipiptables -a forward -p udp --dport 135 -j drop

iptables -a forward -p tcp --dport 139 -j dropipiptables -a forward -p udp --dport 139 -j drop

Service iptables status [root @ laacl-001 ~] $

转载请注明原文地址:https://www.9cbs.com/read-112955.html

New Post(0)