If you want to open ports of linux machine to outside world through command line (It can be done through UI too) then follow the below steps:
Goto /etc/init.d/iptables
Add entry like: (this is for port 6667)
iptables -I INPUT -p tcp -m tcp --dport 6667 -j ACCEPT
Then restart iptables so that changes made gets effective
/etc/init.d/iptables restart
Thanks,
Anand
No comments:
Post a Comment