Proxy Servers / Output of iptables -nvL

This is used for general discussion that is not necessarily server-related.
Post Reply
idlaz
New to forums
New to forums
Posts: 1
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Apr 17, 2019 10:41 am

Proxy Servers / Output of iptables -nvL

Post by idlaz »

Hi All! I've created 2 Proxy Servers on 2 different VPS Hosting. Do you have an idea why both VPS is not showing the same details when you type iptables -nvL?

Here's NFO's output:

Code: Select all

Chain FWDI_public (2 references)
 pkts bytes target     prot opt in     out     source               destination
    6   312 FWDI_public_log  all  --  *      *       0.0.0.0/0            0.0.0.0/0
    6   312 FWDI_public_deny  all  --  *      *       0.0.0.0/0            0.0.0.0/0
    6   312 FWDI_public_allow  all  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0

Chain FWDI_public_allow (1 references)
 pkts bytes target     prot opt in     out     source               destination

Chain FWDI_public_deny (1 references)
 pkts bytes target     prot opt in     out     source               destination

Chain FWDI_public_log (1 references)
 pkts bytes target     prot opt in     out     source               destination

Chain FWDO_public (2 references)
 pkts bytes target     prot opt in     out     source               destination
    6   312 FWDO_public_log  all  --  *      *       0.0.0.0/0            0.0.0.0/0
    6   312 FWDO_public_deny  all  --  *      *       0.0.0.0/0            0.0.0.0/0
    6   312 FWDO_public_allow  all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain FWDO_public_allow (1 references)
 pkts bytes target     prot opt in     out     source               destination

Chain FWDO_public_deny (1 references)
 pkts bytes target     prot opt in     out     source               destination

Chain FWDO_public_log (1 references)
 pkts bytes target     prot opt in     out     source               destination

Chain INPUT_ZONES (1 references)
 pkts bytes target     prot opt in     out     source               destination
   43  3065 IN_public  all  --  eth0   *       0.0.0.0/0            0.0.0.0/0           [goto]
    0     0 IN_public  all  --  *      *       0.0.0.0/0            0.0.0.0/0           [goto]

Chain INPUT_ZONES_SOURCE (1 references)
 pkts bytes target     prot opt in     out     source               destination

Chain INPUT_direct (1 references)
 pkts bytes target     prot opt in     out     source               destination

Chain IN_public (2 references)
 pkts bytes target     prot opt in     out     source               destination
   43  3065 IN_public_log  all  --  *      *       0.0.0.0/0            0.0.0.0/0
   43  3065 IN_public_deny  all  --  *      *       0.0.0.0/0            0.0.0.0/0
   43  3065 IN_public_allow  all  --  *      *       0.0.0.0/0            0.0.0.0/0
    1    60 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0

Chain IN_public_allow (1 references)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:22 ctstate NEW

Chain IN_public_deny (1 references)
 pkts bytes target     prot opt in     out     source               destination

Chain IN_public_log (1 references)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT_direct (1 references)
 pkts bytes target     prot opt in     out     source               destination
While here's the output from other hosting:

Code: Select all

Chain INPUT (policy ACCEPT 60 packets, 5500 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 64 packets, 17478 bytes)
 pkts bytes target     prot opt in     out     source               destination
Thank you.
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Proxy Servers / Output of iptables -nvL

Post by Edge100x »

I'm not sure how you're creating/managing these exactly, but from the looks of it, CentOS does some unusual things with its default configuration, in terms of naming. You are presumably running a different OS at your other host.

I don't personally have much experience with modifying the CentOS rules/structure. I primarily use Gentoo and Debian/Ubuntu, and enter rules directly (or through my own scripts).
Post Reply