I downloaded a vmware image somewhere in the internet, when I go to the home directory I found this script related to iptables and cabal ports..
If you find this important give a rep to the script writer not me..
Code:#!/bin/sh # #CABAL FIREWALL SCRIPT BY PX2000 clear service iptables stop IPTABLE="/sbin/iptables" $IPTABLE -F $IPTABLE -Z $IPTABLE -X #Cabal Secure Ports #DBAgent,GlobalMgrSvr,AuthDBAgent,RockAndRollITS,EventDBAgent #CashDBAgent,PCBangDBAgent,EventMgrSvr,GlobalDBAgent,PartySvr SecPorts="32080,38190,38181,37110,38171,38180,38170,38201,38140,32001" #Cabal Open Ports lPort="38101" #LoginSvr Port cPort="38121" #ChatNode Port aPort="38151" #AgentShop Port #WorldSvr Ports Port1="38111" Port2="38112" Port3="38113" Port4="38114" Port5="38115" Port6="38116" Port7="38117" $IPTABLE -A INPUT ! -s 127.0.0.1 -p tcp -m multiport --dports $SecPorts -j DROP $IPTABLE -A INPUT ! -s 127.0.0.1 -p tcp --dport $lPort -m string --hex-string '|0000e2b7|' --algo bm -j REJECT --reject-with tcp-reset $IPTABLE -A INPUT ! -s 127.0.0.1 -p tcp --dport $cPort -m string --hex-string '|0000e2b7|' --algo bm -j REJECT --reject-with tcp-reset $IPTABLE -A INPUT ! -s 127.0.0.1 -p tcp --dport $aPort -m string --hex-string '|0000e2b7|' --algo bm -j REJECT --reject-with tcp-reset $IPTABLE -A INPUT ! -s 127.0.0.1 -p tcp --dport $Port1 -m string --hex-string '|0000e2b7|' --algo bm -j REJECT --reject-with tcp-reset $IPTABLE -A INPUT ! -s 127.0.0.1 -p tcp --dport $Port2 -m string --hex-string '|0000e2b7|' --algo bm -j REJECT --reject-with tcp-reset $IPTABLE -A INPUT ! -s 127.0.0.1 -p tcp --dport $Port3 -m string --hex-string '|0000e2b7|' --algo bm -j REJECT --reject-with tcp-reset $IPTABLE -A INPUT ! -s 127.0.0.1 -p tcp --dport $Port4 -m string --hex-string '|0000e2b7|' --algo bm -j REJECT --reject-with tcp-reset $IPTABLE -A INPUT ! -s 127.0.0.1 -p tcp --dport $Port5 -m string --hex-string '|0000e2b7|' --algo bm -j REJECT --reject-with tcp-reset $IPTABLE -A INPUT ! -s 127.0.0.1 -p tcp --dport $Port6 -m string --hex-string '|0000e2b7|' --algo bm -j REJECT --reject-with tcp-reset $IPTABLE -A INPUT ! -s 127.0.0.1 -p tcp --dport $Port7 -m string --hex-string '|0000e2b7|' --algo bm -j REJECT --reject-with tcp-reset service iptables save service iptables start


Reply With Quote

