Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-25-2007, 02:49 PM   #1
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Rep: Reputation: 15
NAT problem

I use Ubuntu Desktop 6.10 and i know this has been discussed over and over and over again but i just can't manage it.

I have the linux PC that i use as a gateway for my other, Windows PC. All I want to do i use iptables to NAT trough my linux to my other PC.

My internet connection is eth0 and my LAN is eth1.

I have used:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
and it worked just fine 10 minutes. Then i did a 'apt-get update/upgrade' and ever since i can't get it to work.

What am I doing wrong ?

Last edited by Braynid; 03-26-2007 at 04:16 AM.
Old 03-26-2007, 04:20 AM   #2
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
I have tried also

 iptables -t nat -A POSTROUTING -s -o eth0 -j MASQUERADE
and still won't do it.


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
NAT problem akmon Linux - Networking 1 11-10-2005 12:00 PM
Susefirewall2 Nat Problem / nat 1:1 trubi Linux - Distributions 0 07-20-2004 06:50 AM
NAT problem Comatose51 Linux - Networking 1 06-23-2003 11:41 PM
What's the difference between Linux-NAT and Sygate-NAT? yuzuohong Linux - Networking 0 08-07-2002 05:07 AM
RH 7.3 NAT problem guanyu Linux - Networking 13 07-02-2002 06:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:27 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