Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All,, I have a network A [ 192.168.0.x ] and network B [192.168.20.x] I have iptable rules setup , As off now if i ping from 20.x network ro ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    16

    Cannot access network IPtables!!!


    Hi All,,

    I have a network A [ 192.168.0.x ] and network B [192.168.20.x]

    I have iptable rules setup , As off now if i ping from 20.x network ro 0.x it ping fine. n even able to access machines shares.

    But have problem from 0.x ping to 20.x it says Destination net unreachable.
    Destination net unreachable. or Request timed out.

    Pls sugest me rule to include

    Thanks in advance

    ashok

  2. #2
    Just Joined!
    Join Date
    Dec 2006
    Posts
    3
    might want to look at your netmasks, more then likely the systems on one network has a 255.255.0.0 netmask and the other has a 255.255.255.0 netmask. You get a destination unreachable when an IP address does not match a rule in your routing table, you also might want to make sure you have a default route in your table to a gateway server.

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    16
    Hi Frnd

    Thanks for your reply ... yes i looked into my ip conf... everything seems fine..

    Let me make it more clear

    Machine A :- eth0 192.168.0.2 eth1 192.168.10.1 default GW 192.168.0.254.

    I have IPtables :-

    -A FORWARD -s 192.168.20.0/255.255.255.0 -j ACCEPT
    -A FORWARD -d 192.168.20.0/255.255.255.0 -j ACCEPT
    -A POSTROUTING -o eth0 -j MASQUERADE

    With this settings from a LAN machine 192.168.10.20 having GW 192.168.10.1 if i ping 192.168.0.100 My PC it pings fine.

    MY PC - 192.168.0.100 with GW 192.168.0.254 If i ping 192.168.10.20 it says destination unreachable.

    I know my PC GW is different so i get ping failed for 10.x network -- But pls suggest the idea on How do 0.x machines reach 10.x network.

    If possible from iptables pls suggest me a rule.

    Or any other possible solution.

    Thanks for your time

    Best Regards
    ashok

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •