Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Omission in the Networking Tutorial in LXF 169

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Magazine and coverdiscs
View previous topic :: View next topic  
Author Message
bbagger



Joined: Sat Apr 11, 2009 7:15 pm
Posts: 12

PostPosted: Fri Mar 22, 2013 8:54 pm    Post subject: Omission in the Networking Tutorial in LXF 169 Reply with quote

The 'Build a router' tutorial in LXF 169 works fine, except for one thing: After having set up the router in 'network-1' you are asked to ping e.g. google.com from 'network-2'. This will not work until you flush the FORWARD chain in 'network-1':

iptables -F FORWARD

Best regards,

Bent
Back to top
View user's profile Send private message
bsimpson



Joined: Tue Apr 16, 2013 3:59 am
Posts: 1
Location: Denver, CO

PostPosted: Tue Apr 16, 2013 2:53 pm    Post subject: LXF 169 Networking Tutorial Omission Reply with quote

Perhaps there was something else omitted? Until I tried the suggestion:

iptables -F FORWARD

any attempt to ping beyond the first VM from the second resulted in a “Destination Host Prohibited” error. I tried the minimal installation for both CentOS v6.3 and v6.4, and I believe I followed the tutorial exactly.

After entering the “iptables -F FORWARD” command on the first VM, I get the following behavior from the second VM:

ping google.com – unknown host
ping 74.125.225.165 – 100% packet loss

Any suggestions would be appreciated.
Back to top
View user's profile Send private message
bbagger



Joined: Sat Apr 11, 2009 7:15 pm
Posts: 12

PostPosted: Sat Apr 20, 2013 7:38 pm    Post subject: Reply with quote

It is very important that you get the NATing correct. I can (almost) reproduce your error.

You have to make sure that you set up masquerading on the interface that has the 10.0.2.x address, otherwise it won't work. The tutorial specifies masquerading on eth1. In my case eth1 has the address 192.168.1.2, so masquerading will not work. When I changed the masquerading to happen on eth0 everything worked.

When I wrote 'almost' above it meant that I got the 'unknown host' message, but not the 'ping 74.125.225.165 – 100% packet loss' message. The only explanation I can find is that you somehow got the DNS entry for google.com cached locally.

I hope this gets your tutorial working as well.

Bent
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Magazine and coverdiscs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast