Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
ip address 0.0.0.0 255.255.255.0 U 0 0 0 eth1
ip address 0.0.0.0 255.255.255.0 U 0 0 0 eth0
ip address 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 ip address 0.0.0.0 UG 0 0 0 eth1
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
ipaddress 0.0.0.0 255.255.255.0 U 0 0 0 eth1
ap address 0.0.0.0 255.255.255.0 U 0 0 0 eth0
ip address 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 ip address 0.0.0.0 UG 0 0 0 eth1
[root@venus ~]# iptables -I INPUT -p tcp --dport 5222 -j ACCEPT
You have new mail in /var/spool/mail/root
[root@venus ~]# service iptables save
Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
[root@venus ~]# service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter nat mangle [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
ip address 0.0.0.0 255.255.255.0 U 0 0 0 eth1
ip address 0.0.0.0 255.255.255.0 U 0 0 0 eth0
ip address 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 ip address 0.0.0.0 UG 0 0 0 eth1
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
ipaddress 0.0.0.0 255.255.255.0 U 0 0 0 eth1
ap address 0.0.0.0 255.255.255.0 U 0 0 0 eth0
ip address 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 ip address 0.0.0.0 UG 0 0 0 eth1
[root@venus ~]# iptables -I INPUT -p tcp --dport 5222 -j ACCEPT
You have new mail in /var/spool/mail/root
[root@venus ~]# service iptables save
Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
[root@venus ~]# service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter nat mangle [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]
I do not understand any of your posted examples. Are you replacing the ip addresses with 0.0.0.0 or is this really what you see?
If eth0 is your local lan why are you blocking a 172 reserved ip space with x's?
Your current iptables config will accept all incoming traffic as you have no reject/deny statements anywhere in the INPUT chain.
I can not help you will all these 0's which make it virtually impossible for me to find a problem. if you want try posting again and maybe change the first three digits of your ip range to 999 or something.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.