LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 11-07-2008, 09:09 AM   #1
Harvfive
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Rep: Reputation: 0
Smile Routing internal to external


Hey all,

What I'm doing here is running a VMWARE team with two Novell Suse Linux Enterprise Server 10.2 installs. I'm using one as an internal box which has one eth device on it. My goal is to set up a second firewall/routing box to an external source. My problem is that I cannot get internet access through my firewall/routing box to my internal box. Right now, I have them configured as follows:

Internal Box:

Static IP:
Eth0 192.168.0.2 (Nmask: 255.255.255.0)
Gateway: 192.168.0.1 (Firewall/routing box internal gateway card)
DNS: 192.168.0.1 (Running a bind DNS on this interface)

External Box:
Eth0 142.237.41.138 (External Card on Firewall/Routing box which gets its IP via dhcp)
Eth1 192.168.0.1 (Gateway for internal box/also running bind)

route:
Destination: GW: Genmask: Flags: Metric: Ref: Use: Dev:
142.237.41.0 142.237.41.138 255.255.255.0 UG 0 0 0 Eth1

I feel I may have entered the route wrong because, I can ping from internal box to internal gateway, and from internal to external interface, however for example I cannot ping outside the vmteam, only as far as the external interface (142.237.41.138)

Also, for now, I have my firewalls down, once I get this working I will start modifying my iptables.

Feel free to ask me to post any additional information or clarification needed, I would be happy just to get this working

I have routing on as well (echo 1 >/proc/sys/net/ipv4/ip_forwarding)

Oh, AND - my iptable rules are as follows:
Note that my $IF_PRV and $IF_PUB ARE predefined variables with information regarding interface private/public.

iptables -A FORWARD -i $IF_PRV -o $IF_PUB -j ACCEPT
iptables -A FORWARD -i $IF_PUB -o $IF_PRV -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -s $NET_PRV -o $IF_PUB -j SNAT --to $IP_PUB

Last edited by Harvfive; 11-07-2008 at 03:06 PM. Reason: Completely forgot to post my iptable rules
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 9 internal/external routing problem calphis Linux - Networking 2 10-10-2008 12:14 AM
3 NICs, 1 external, 2 internal, only one routing arobinson74 Linux - Networking 2 07-20-2008 05:03 PM
Routing on my internal network. Milkman00 Linux - Networking 11 09-02-2005 02:30 PM
Routing between internal subnets teamchachi Linux - Networking 2 05-11-2005 07:21 AM
Internal Routing Saris Linux - Newbie 12 06-24-2003 11:30 PM


All times are GMT -5. The time now is 06:36 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration