Networking Forums

Networking Forums > Computer Networking > Linux Networking > routing ports from special PCs to another gateway

Reply
Thread Tools Display Modes

routing ports from special PCs to another gateway

 
 
Stefan Lindecke
Guest
Posts: n/a

 
      03-31-2005, 09:23 AM
Hi group !

Follwowing problem, I have two gateway in my company, both working with
NAT. Standard Gateway ist 192.168.0.99.
static routing works for subnets going over 192.168.0.1.
But sometime its necessary, that some PC using netservices (http,nntp
and so on) routing through the NON standard gateway



Internet Internet
line 1 line 2
| |
----------------- -----------------
| gateway | | cisco vpn |
| 192.168.0.99 | | 192.168.0.1 |
| NAT | | NAT |
----------------- -----------------
| |
-------------------------------------------
|
INTRANET
192.168.0.1/24


Can someone help me, i´ve tried it with SNAT DNAT, PREROUTING, but no
chance, to change the standradgateway for this connection.....

Hope this helps,

bye
Stefan
 
Reply With Quote
 
 
 
 
Horst Knobloch
Guest
Posts: n/a

 
      04-02-2005, 06:31 PM
Stefan Lindecke <(E-Mail Removed)> wrote:

> Follwowing problem, I have two gateway in my company, both working with
> NAT. Standard Gateway ist 192.168.0.99.
> static routing works for subnets going over 192.168.0.1.
> But sometime its necessary, that some PC using netservices (http,nntp
> and so on) routing through the NON standard gateway

....
> Can someone help me, i´ve tried it with SNAT DNAT, PREROUTING, but no
> chance, to change the standradgateway for this connection.....


I would rearrange the topology(1) a little bit:

Internet line 1 Internet line 2
| |
----------------- 10.0.0.99/24 -----------------
| default gw |----------------------| cisco vpn |
| 192.168.0.99 | | 10.0.0.1/24 |
| NAT | | NAT |
----------------- -----------------
|
INTRANET
192.168.0.1/24

Then use iptables' filter marks and iproute2's policy routing
features. http://lartc.org/howto/lartc.netfilter.html should get
get you into the right direction.

1) Of course this scenario needs another NIC but it offers you IMO
all options and is the cleaner approach. The advandages are:
you only have one (default) gw on the intranet boxes and you
can easily control the access to the Internet just in one
place on the default gateway.

HTH

Ciao, Horst
--
»When pings go wrong (It hurts me too)« E.Clapton/E.James/P.Tscharn
 
Reply With Quote
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
the wonderful hardware-gateway with good quality,special feature, viviecsino Wireless Internet 0 10-13-2007 01:44 AM
Routing and Remote Access - Maximum ports limit power159 Windows Networking 0 11-13-2006 06:11 PM
More than 4 ports in a wireless gateway / router esbaylus@netzero.net Wireless Internet 3 02-12-2006 12:03 AM
Special routing table Eduardo Ogasawara Linux Networking 2 12-23-2003 07:12 AM
Hardware router - Ports routing Quest Windows Networking 1 09-24-2003 03:52 PM



1 2 3 4 5 6 7 8 9 10 11