IPTables question

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
+ (text/html)
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: keith smith
Dátum:  
Címzett: Main PLUG discussion list
Tárgy: 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