LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 05-12-2005, 09:30 AM   #1
Hugo Orlando
LQ Newbie
 
Registered: Nov 2003
Location: Argentina
Distribution: Fedora Core 2
Posts: 8

Rep: Reputation: 0
Transparent redirection


Hello forum:

Can anyone help me with this problem?
This is my network layout:


          Linux
          (ppp0)
DSL ---> | eth0 |
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| eth1 | <--- SWITCH ---->| M$Win1 |
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \__> | M$Win2 |


The IP adresses are:
ppp0: Dynamic
eth0: 192.168.1.100
eth1: 192.168.0.100
M$Win1: 192.168.0.1
M$Win2: 192.168.0.2
Subnet Mask:255.255.255.0

The question is: How to perform transparent redirection of all packets on network, so that the M$Win machines may get Internet access throughout the Linux machine, as like as a Hardware Router. I don't want, at first, any kind of security, proxy, etc.
The M$Win machines have to use Firefox and Thunderbird, as such as, if they could have direct Internet connection.
What configuration does Linux need? And, the M$Win machines?
Thanks in advance,

Hugo

 
Old 05-12-2005, 10:59 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Look into setting up NAT using iptables.
 
Old 05-12-2005, 12:58 PM   #3
Hugo Orlando
LQ Newbie
 
Registered: Nov 2003
Location: Argentina
Distribution: Fedora Core 2
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks David,

I tried to use iptables unsuccessfully. The M$Win machines, never saw the WAN. Although they can do ping locally.
By the way, do you have any iptables example script to do it?
I'm newbie in iptables and all that stuff.
Thanks again.
 
Old 05-12-2005, 02:46 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Check out this howto: http://www.netfilter.org/documentati...OWTO.html#toc6

It also reasonably applies to 2.6 kernels. You might also want to check out the 'firestarter' package as a GUI firewall manager, if running a GUI on that machine.
 
Old 05-12-2005, 06:26 PM   #5
Hugo Orlando
LQ Newbie
 
Registered: Nov 2003
Location: Argentina
Distribution: Fedora Core 2
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks a lot. I'll try it
 
  


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
Transparent (or semi-transparent) mounts systemparadox Linux - General 8 04-01-2005 08:51 AM
Port 80 redirection omlex Linux - Security 1 02-20-2005 04:22 PM
Redirection in Apache gonzo22 Linux - Networking 5 02-12-2005 10:54 AM
Transparent PNGs show up as transparent in Firefox - opaque in IE? vharishankar General 10 01-11-2005 07:54 AM
redirection in C pantera Programming 2 08-11-2004 02:06 PM


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