Download your favorite Linux distribution at LQ ISO.
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 04-23-2008, 12:03 AM   #1
LQ Newbie
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Red face NAT with single NIC in fedora

How to do the NAT with single NIC in fedora core
Old 04-23-2008, 07:58 AM   #2
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Welcome to LQ.

I'm afraid your Q makes no sense to me as it is currently phrased. In fact, it occurred to me to ask you back, "How does one do NAT with a single NIC?" Of course, I wouldn't be referring to the internals on FC4, but rather the network layout. My point is that NAT as I know it requires the source & the destination to be separate. Please explain your situation, a network diagram would be nice.

2 points about your choice of distro:[list] [*] FC4 is way out of date. [*] FC anything is for testing, RHEL or CentOS should be used for (most) servers. [list]
Old 04-24-2008, 05:35 AM   #3
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,314

Rep: Reputation: 98
I don't know if this helps, but perhaps you are thinking about maybe running a proxy? You can run a proxy server of your box and then your browser connects to that instead of directly through your internet connection.
Old 05-03-2008, 02:42 PM   #4
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
ifconfig eth0:1 up
ifconfig eth0:1 netmask
iptables -t nat -A POSTROUTING -s -d 0/0 -o eth0 -j MASQUERADE

? i dontknow, havent tried it, but seemslike it would work.. you could also specify eth0:1 in the iptables rules for better seperation. ip is layer 3 so shouldnt have a problem with both interfaces being on the same nic.


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
Removing a NIC, DHCP, NAT and going static WorldBuilder Linux - Networking 8 07-21-2007 08:44 PM
problems routing with single NIC bravo_veinticinco Linux - Networking 1 12-16-2005 04:30 AM
no nat - not-so-trusted nic jimbeaujones *BSD 1 12-17-2004 03:48 PM
Single NIC of Reverse Proxy Natterjack Toad Linux - Networking 0 10-28-2004 04:08 AM
how to configure firewall on single nic RajaRC Linux - Networking 3 10-15-2004 07:16 AM > Forums > Linux Forums > Linux - Newbie

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