Page 1 of 1

What does this iptables -L output mean?

Posted: 2017/04/21 21:00:28
by ddolecki108
What do these iptables -L output rules mean:

ACCEPT tcp -- anywhere anywhere tcp dpt:8009 state NEW,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:8109 state NEW,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:8011 state NEW,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:webcache state NEW,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:us-srv state NEW,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:pcsync-https state NEW,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:8180 state NEW,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:8280 state NEW,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:8580 state NEW,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:squid state NEW,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:cruise-update state NEW,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:8309 state NEW,ESTABLISHED

Does "ACCEPT tcp -- anywhere anywhere tcp dpt:8009 state NEW,ESTABLISHED"
mean to accept all TCP packets destined for port 8009 on the local system?

What does "ACCEPT tcp -- anywhere anywhere tcp dpt:webcache state NEW,ESTABLISHED" mean?
is "webcache" a standard port?????, same for squid/cruise-update

Please advise

Re: What does this iptables -L output mean?

Posted: 2017/04/22 13:10:44
by TrevorH
Use iptables-save to read the rules. It shows you things that iptables -L does not.

Re: What does this iptables -L output mean?

Posted: 2017/04/23 23:19:52
by ddolecki108
How to convert iptables rules to firewalld rules?
example: ACCEPT tcp -- anywhere anywhere tcp dpt:8309 state NEW,ESTABLISHED
how to convert the above to a firewalld rule?