LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-17-2014, 09:24 PM   #1
rhodan
LQ Newbie
 
Registered: Aug 2001
Posts: 19

Rep: Reputation: 0
Linux as a router and iptables question


I am using VMware Workstation with multiple virtual networks and virtual machines on each network. I have setup CentOS as a router for the lab, between my virtual machines and my physical network.

My virtual machines can all ping and trace each other fine on the multiple virtual networks, however they cannot reach my physical router for access to the internet.

I think it's iptables, so how do I allow or accept forwarding from my virtual networks to my physical router in iptables?

Thanks
 
Old 06-17-2014, 09:35 PM   #2
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
Did you enable ip_forward in the kernel?
 
Old 06-17-2014, 09:41 PM   #3
rhodan
LQ Newbie
 
Registered: Aug 2001
Posts: 19

Original Poster
Rep: Reputation: 0
Hi and thanks for the reply.

Yes I have enabled IP forwarding. The problem is that I don't understand iptables very well, so I need some help there.
 
Old 06-17-2014, 09:47 PM   #4
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
What's the output of

Iptables -xvn --list

Can you verify that the Linux router is able to connect to the internet ?
 
Old 06-17-2014, 10:26 PM   #5
rhodan
LQ Newbie
 
Registered: Aug 2001
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks I ended up getting it working after following this guide: http://freelinuxtutorials.com/tutori...-and-firewall/
 
Old 06-17-2014, 11:19 PM   #6
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
No problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
iptables linux router mckinnon81 Linux - Networking 4 10-02-2013 12:27 PM
Browser security at router & iptables question el_tedward Linux - Security 1 08-12-2010 05:01 PM
linux router setup... use iptables??? atuk1 Linux - Networking 2 02-05-2006 05:15 PM
Linux router IPTABLES Howto hakcenter Linux - Networking 1 07-14-2003 10:03 PM


All times are GMT -5. The time now is 10:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration