IPTables question

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
+ (text/html)
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: keith smith
Dato:  
Til: Main PLUG discussion list
Emne: IPTables question
Hi,

I added a rule : iptables -A INPUT -p tcp -s 24.221.202.36 --dport 22 -j ACCEPT

and when I list the iptables I see: 

ACCEPT     tcp  --  24-221-202-36.pools.static.spcsdns.net  anywhere            tcp dpt:ici

Are the below two rules the same?

iptables -A INPUT -p tcp -s 24.221.202.36 --dport 22 -j ACCEPT
iptables -A INPUT -p tcp -s 24-221-202-36.pools.static.spcsdns.net --dport 22 -j ACCEPT

in other words can I use 24-221-202-36.pools.static.spcsdns.net in place of the IP?

Also I do not see the port when I issue iptables -L ?  How can I sell if the rule applies to a specific port?

Thanks!

------------------------

Keith Smith---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss