News:

To still receiving newsletters from us please subscribe to our Newsletters:
http://tech.groups.yahoo.com/group/developers-Heaven/

Main Menu

Allow IP to access your Firewall (iptables)

Started by admin, April 01, 2011, 07:14:52 PM

Previous topic - Next topic

admin

If you have two servers and you want have them connected to each other, then you have to allow access for there IPs on each other through your firewall.
Say your sever1 IP is: 174.140.168.162
Then you can run on server2:


iptables -A INPUT   -j ACCEPT -p all -s 174.140.168.162
iptables -A OUTPUT  -j ACCEPT -p all -d 174.140.168.162
service iptables save

and you can check the result by:
iptables -L  -n -v --line-numbers