allowing only 1 IP through

iptables -I INPUT \! --src -m tcp -p tcp --dport 777 -j DROP # if it's not, drop it 

insert into chain INPUT drop any tcp packet to port 777 thats not from the ip

Source: ServerFault

Also read...

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>