Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-23-2010, 02:23 PM   #16
Registered: Aug 2002
Posts: 14,659

Rep: Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459

You still have not confirmed that you have configured IP forwarding on your gateway/server.
I see the forward rules but nothing for MASQUERADE

Here is the very basic.
Old 05-23-2010, 03:38 PM   #17
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Rep: Reputation: Disabled
Originally Posted by johndubchak View Post
I may be wrong, but is it possible that I don't have a rule that allows anything to be accepted that originates as incoming on the private network through eth1?
There still is no *nat part, which is required. you cannot leave it out. A routing table only tells how to get from one point to another, but does not translate a private ip address into a public ip address. This is what you are really looking for!

Execute the following commands on your external server:
# iptables --table nat --append POSTROUTING -o eth1 -j MASQUERADE
# service iptables save
# cp -v /etc/sysconfig/ /etc/sysconfig/iptables
The last 2 commands are required to make sure that the new configuration is stored and will be reused when you reboot your server or restart iptables.

One advise though, until you have forwarding working, you should keep the iptables config really simple. That way it is easier to solve problems. By creating a complex iptables configuration, you may run into other problems that might cause you to believe that forwarding is not working.


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
[SOLVED] Access firewall public IP from internal NATed DMZ machine rsantos Linux - Networking 6 05-25-2010 11:40 AM
I want to setup a dial up with access to the internal network and internet depam Linux - Software 2 05-02-2006 07:21 AM
Poptop server cannot access internal network LJ151 Linux - Software 3 08-05-2004 07:55 AM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM
RHL 9.0 Unable to access Win2k Home Network or internet josh.linux Linux - Networking 5 11-14-2003 12:05 PM

All times are GMT -5. The time now is 10:49 PM.

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