Hey can someone please help me via Skype, im trying to figure out how to use iptables trying to allow http from one node to another , allowing ssh and pings both way thanks.
[RedHat] Iptables |
|
Apr 13, 2016 11:33 PM
(This post was last modified: Apr 14, 2016 04:04 AM by DeathBlader.)
SSH
{ iptables -A TCP -p tcp -m tcp --dport 22 -j ACCEPT } Enable or allow ICMP ping incoming client request SERVER_IP="******" { iptables -A INPUT -p icmp --icmp-type 8 -s 0/0 -d $SERVER_IP -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT iptables -A OUTPUT -p icmp --icmp-type 0 -s $SERVER_IP -d 0/0 -m state --state ESTABLISHED,RELATED -j ACCEPT } Allow or enable outgoing ping request { SERVER_IP="*******" iptables -A OUTPUT -p icmp --icmp-type 8 -s $SERVER_IP -d 0/0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -p icmp --icmp-type 0 -s 0/0 -d $SERVER_IP -m state --state ESTABLISHED,RELATED -j ACCEPT } (Apr 13, 2016 11:33 PM)DeathBlader Wrote: SSH Thanks you!! |
|
|

