routing ports from special PCs to another gateway

From: Stefan Lindecke (news_at_chektrion.de)
Date: 03/31/05


Date: Thu, 31 Mar 2005 11:23:44 +0200

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