Iptables list

Marco Savo savomarco at gmail.com
Fri Nov 6 06:13:36 MST 2009


Hello,
configuring iptables rules,
how I can find out if one port number I want to use is already in use?
example:

$IPTABLES -t nat -I zone_wan_prerouting 1 -j ACCEPT --protocol udp --dport
${UDP_PORT}  --destination localhost
$IPTABLES -t nat -I zone_wan_prerouting 1 -j ACCEPT --protocol tcp --dport
${TCP_PORT}  --destination localhost
$IPTABLES -t nat -I zone_wan_prerouting 1 -j ACCEPT --protocol tcp --dport
${TCP_HOST_PORT}  --destination localhost

How I can check if these ports (UDP_PORT TCP_PORT TCP_HOST_PORT) are in use
from another application?


-- 
'The Magic Is In the Movement'

Marco Savo
SW Engineer

882 East Glenn St.
Tucson, AZ 85719
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20091106/82c76dbd/attachment.htm 


More information about the PLUG-discuss mailing list