![]() |
|
[RedHat] Iptables - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Computing (https://hackforums.net/forumdisplay.php?fid=88) +---- Forum: Linux (https://hackforums.net/forumdisplay.php?fid=85) +---- Thread: [RedHat] Iptables (/showthread.php?tid=5234414) |
[RedHat] Iptables - CHEST BRUH - Apr 11, 2016 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. * - DeathBlader - Apr 13, 2016 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 } * - CHEST BRUH - Apr 15, 2016 (Apr 13, 2016 11:33 PM)DeathBlader Wrote: SSH Thanks you!! |