Fedora Linux Support Community & Resources Center
  #1  
Old 6th February 2008, 10:58 PM
Zero-Override Offline
Registered User
 
Join Date: May 2005
Posts: 741
NAT eth0 -> wlan0

well... here is the situation

there is just a single wireless adapter
and there are several pc's that need internet....

so my idea was routing it

like:
everything that comes in from eth0 should be redirected to wlan0 as outgoing

now i figure it is not so hard to do with iptables but i have no clue as to what command to use, i have seen several highly complex rules but thought it could be done much easier

port 80, 8080, 23, 22, 21 are basically the only ports required to forward (if applicable)

anybody who can shed some light on this?
__________________
LINUX NUMBER 389596
machine number 290131
Reply With Quote
  #2  
Old 7th February 2008, 12:00 AM
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,509
You might be able to use this as a starting point. http://easyfwgen.morizot.net/gen/

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #3  
Old 7th February 2008, 12:51 AM
Iron_Mike Offline
Registered User
 
Join Date: Jul 2005
Location: Ft Huachuca, AZ
Posts: 3,772
Quote:
Originally Posted by Zero-Override
well... here is the situation

there is just a single wireless adapter
and there are several pc's that need internet....

so my idea was routing it

like:
everything that comes in from eth0 should be redirected to wlan0 as outgoing

now i figure it is not so hard to do with iptables but i have no clue as to what command to use, i have seen several highly complex rules but thought it could be done much easier

port 80, 8080, 23, 22, 21 are basically the only ports required to forward (if applicable)

anybody who can shed some light on this?
Not enough info, you say you have wireless, but want to connect/slave hosts off this, then your talking about iptables....
Reply With Quote
  #4  
Old 7th February 2008, 01:00 AM
wintersm Offline
Registered User
 
Join Date: Jul 2006
Posts: 293
try the application "firestarter" it is a gui front end for iptables and should do what you are attempting to do, which i decipher to "internet connection sharing" .
Reply With Quote
Reply

Tags
>, eth0, nat, wlan0

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up bridge? (wlan0-eth0) szymex Servers & Networking 20 29th September 2013 04:12 PM
wlan0 and eth0 not working JTHM Servers & Networking 5 17th November 2008 07:25 PM
Trying to bridge wlan0 and eth0 Etanisla Servers & Networking 3 24th November 2006 07:56 PM
wlan0 doesn't work without eth0? LinuxHippy Servers & Networking 6 24th July 2005 11:50 PM
eth0 or wlan0 - which to use? essdeeay Servers & Networking 1 15th October 2004 11:28 PM


Current GMT-time: 22:55 (Tuesday, 29-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat