LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 05-23-2010, 03:23 PM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,155

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783

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.
http://www.revsys.com/writings/quicktips/nat.html
 
Old 05-23-2010, 04:38 PM   #17
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 352

Rep: Reputation: Disabled
Quote:
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:
Code:
# iptables --table nat --append POSTROUTING -o eth1 -j MASQUERADE
# service iptables save
# cp -v /etc/sysconfig/iptables.save /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.
 
  


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


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