LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-08-2010, 11:52 AM   #1
pshoaf
LQ Newbie
 
Registered: Feb 2005
Location: Charleroi, PA 30 mi SE of Pgh
Distribution: RedHat, Fedora, Oracle
Posts: 16

Rep: Reputation: 0
Setup mutil ISP Router


I would like to setup a Linux Router with Fedora. Here is what I have and would like to do...

eth0 - T1 12.x.x.0/24 network .1 is gateway
eth1 - T1 63.x.x.0/25 network .1 is gateway
eth2 - DSL 151.x.x.77 single static IP (Modem in bridge mode)
eth3 - LAN 192.168.x.x network

Email filter device is on the LAN at 192.168.x.3. I need to provide SNAT to that device from both T1 interfaces...
12.x.x.44 -> 192.168.x.3
63.x.x.44 -> 192.168.x.3

All outgoing traffic will route through DSL except for traffic destined for addresses on either eth0 or eth1 (web sites).

I assume I would need the following:
route add -net 12.x.x.0 netmask 255.255.255.0 gw 12.x.x.1
route add -net 63.x.x.0 netmask 255.255.255.128 gw 63.x.x.1
route add default gw 151.x.x.77

I also assume I would need to setup iptables with FORWARDs for the 192.x.x.x networks to eth3.

What I am not sure how to do, is properly setup the incoming redirections so that the email filter can be access from both eth0 and eth1 by different IP addresses.

Any/All help with this is greatly appreciated.
 
Old 09-08-2010, 02:28 PM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Quote:
Originally Posted by pshoaf View Post
I would like to setup a Linux Router with Fedora. Here is what I have and would like to do...

eth0 - T1 12.x.x.0/24 network .1 is gateway
eth1 - T1 63.x.x.0/25 network .1 is gateway
eth2 - DSL 151.x.x.77 single static IP (Modem in bridge mode)
eth3 - LAN 192.168.x.x network

Email filter device is on the LAN at 192.168.x.3. I need to provide SNAT to that device from both T1 interfaces...
12.x.x.44 -> 192.168.x.3
63.x.x.44 -> 192.168.x.3
I think you need to use DNAT, because what comes into 12.x.x.44 should be sent to 192.168.x.3. Also allow forward between interfaces.
iptables -t nat -A PREROUTING -p tcp -d 12.x.x.44 --dport xx -j DNAT --to-destination 192.168.x.3

Quote:
All outgoing traffic will route through DSL except for traffic destined for addresses on either eth0 or eth1 (web sites).

I assume I would need the following:
route add -net 12.x.x.0 netmask 255.255.255.0 gw 12.x.x.1
route add -net 63.x.x.0 netmask 255.255.255.128 gw 63.x.x.1
route add default gw 151.x.x.77

I also assume I would need to setup iptables with FORWARDs for the 192.x.x.x networks to eth3.

What I am not sure how to do, is properly setup the incoming redirections so that the email filter can be access from both eth0 and eth1 by different IP addresses.

Any/All help with this is greatly appreciated.
 
  


Reply

Tags
isp, network


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
Mutil IP issue sharkhuang Linux - Networking 7 12-20-2008 07:02 AM
Mutil function printer Richie55 Linux - Hardware 4 04-04-2007 04:31 AM
ISP aliases not resolving now with a router. ryhner Linux - Networking 0 05-01-2005 09:44 PM
ISP setup emailssent General 1 09-30-2004 01:43 AM
Help with isp setup mxw320 Linux - Networking 2 02-06-2001 11:16 PM


All times are GMT -5. The time now is 10:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration