LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-23-2008, 12:03 AM   #1
sandylinux
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
archtoad6
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
scheidel21
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
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
Code:
ifconfig eth0:1 up
ifconfig eth0:1 192.168.0.1 netmask 255.255.255.0
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -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.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration