LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-16-2012, 06:37 AM   #16
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34

If a ping is can find its way form a host on one side to a host on the other side and back, routing must be fine
 
Old 05-17-2012, 10:18 AM   #17
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Yes, ping is a two direction test. It is becoming a very poor test too. Many devices and OS's tend to block it by default.
 
Old 05-20-2012, 08:07 AM   #18
isenhand
LQ Newbie
 
Registered: May 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nikmit View Post
No. Do a 'iptables -L -v -n'
Chain INPUT (policy DROP 513 packets, 52341 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25565
0 0 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:25565
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:139
0 0 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:139
0 0 ACCEPT 0 -- eth0 * 192.168.1.0/24 192.168.0.0/24
2347 703K ACCEPT 0 -- lo * 0.0.0.0/0 0.0.0.0/0
833 104K ACCEPT 0 -- mueb * 192.168.0.0/24 0.0.0.0/0
0 0 drop-and-log-it 0 -- eth0 * 192.168.0.0/24 0.0.0.0/0
1438 1120K ACCEPT 0 -- eth0 * 0.0.0.0/0 192.168.1.2
0 0 ACCEPT 0 -- eth0 * 0.0.0.0/0 192.168.1.2 state RELATED,ESTABLISHED

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
833K 229M ACCEPT 0 -- eth0 mueb 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:5199
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp spt:5198
0 0 ACCEPT udp -- eth0 mueb 0.0.0.0/0 0.0.0.0/0 udp dpt:25565
0 0 ACCEPT tcp -- eth0 mueb 0.0.0.0/0 0.0.0.0/0 tcp dpt:25565
0 0 ACCEPT 0 -- eth0 mueb 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
762K 275M ACCEPT 0 -- mueb eth0 0.0.0.0/0 0.0.0.0/0
9438 2330K ACCEPT 0 -- mueb mueb 0.0.0.0/0 0.0.0.0/0
0 0 drop-and-log-it 0 -- * * 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 0 -- * eth0 192.168.0.0/24 192.168.1.0/24
0 0 ACCEPT tcp -- * eth0 0.0.0.0/0 0.0.0.0/0 tcp dpt:25565
0 0 ACCEPT udp -- * eth0 0.0.0.0/0 0.0.0.0/0 udp dpt:25565
0 0 ACCEPT tcp -- * eth0 0.0.0.0/0 0.0.0.0/0 tcp dpt:139
0 0 ACCEPT udp -- * eth0 0.0.0.0/0 0.0.0.0/0 udp dpt:139
2427 710K ACCEPT 0 -- * lo 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT 0 -- * mueb 192.168.1.2 192.168.0.0/24
162 94368 ACCEPT 0 -- * mueb 192.168.0.0/24 192.168.0.0/24
0 0 drop-and-log-it 0 -- * eth0 0.0.0.0/0 192.168.0.0/24
1533 191K ACCEPT 0 -- * eth0 192.168.1.2 0.0.0.0/0
0 0 drop-and-log-it 0 -- * * 0.0.0.0/0 0.0.0.0/0

Chain drop-and-log-it (4 references)
pkts bytes target prot opt in out source destination
0 0 LOG 0 -- * * 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 6
0 0 REJECT 0 -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable


Not sure if I follow that. I see "ACCEPT 0 -- * mueb 192.168.1.2 192.168.0.0/24" but 1.2 is on eth0?
 
Old 05-20-2012, 08:09 AM   #19
isenhand
LQ Newbie
 
Registered: May 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zhjim View Post
First things first. Why not disable iptables rules all together
I clear all the ip rules and get "Operation not permitted".
 
Old 05-20-2012, 08:18 AM   #20
isenhand
LQ Newbie
 
Registered: May 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
I also added : /sbin/iptables -I FORWARD -s 192.168.1.0 -d 192.168.0.0 -i eth0 -o mueb -j ACCEPT


but it didn't help.
 
Old 05-20-2012, 08:31 AM   #21
isenhand
LQ Newbie
 
Registered: May 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
fixed it!

I used wireshark to trace what was happing on eth0 and found a problem with the router on the 1.0 network.

Thanks all for your help!
 
Old 05-21-2012, 02:06 AM   #22
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by isenhand View Post
I clear all the ip rules and get "Operation not permitted".
Possible cause the policies remaind beeing set to DROP. (Just writing that in case someone uses this thread for reference to a similar problem)

Good to hear that you figured it out. Please mark the thread as solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
Debian 5 , after SysCp Installation and configure Ping Valure ( ping: unknown host ) brenner23 Linux - Networking 1 07-14-2010 09:01 PM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 07:44 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration