How to add a gateway to proxy interface

How to add a gateway to proxy interface

Post by Tam McLaughli » Wed, 20 Oct 1999 04:00:00

We have a router between 2 of our offices and I have added a gateway to
servers and PCs to allow then access between the 2 sites. The problem I
have is that I cannot add I gateway to the interface on our email/internet
server which is being used for a proxy connection for the software Delegate.

I can do this:

route add  -net gw netmask dev eth0

which allows users to access their email via the network card with the IP

but to allow them access to the proxy server i tried using the interface
where the IP
address is located as follows:

route add  -net gw netmask dev eth0:0

but it gave the error :SIOCADDRT: Invalid argument

I am assuming this is the correctn interface eth0:0 to use as our browsers
connect via the proxy with IP address

the o/p from "route" is :

Kernel IP routing table
Destination     Gateway         Genmask                 Flags Metric Ref
Use Iface
proxy                    *              UH    0
0        0     eth0:0               *              UH    1
0        0     sl0    *         
UH    0          0        0     ppp0         *           U     0          0    78238     eth0
box14            UG    0          0      117     eth0           *                           U
0          0      851     lo
default                 *                              U
0          0       14     ppp0    default                 *                     U         1          0     2053     sl0

any ideas ???


1. Cannot add default gateway outside of interface subnet

I am trying to configure my SPARC Solaris 2.8 box to use my cable modem for
it's default internet connection.

The interfaced is configured to accept DHCP from the cable modem, and it
does.  It recieves an address in a 208.X.X.X class c subnet  When bootup
gets to the routing section, it tries to add a gateway of 10.X.X.X from a
class a subnet.  It returns of an error of network unreachable.

I'm sure other people have had this problem, but couldn't find much in
searches.  The only thing I haven't tried is manually assigning the
interface an address (it's really static anyway) and modifying to subnet
mask to ... and then maybe I can add the default route?

Is their any other way to add a default route outside your interface's

-- ASD

2. Please HELP!

3. Add a new logical interface on a physical interface with ioctl()

4. Video Card Problems

5. The Great gateway Train or how to gateway behind the gateway

6. Repository for patches?

7. ftp client proxy ms proxy firewall http proxy unix

8. Sonnet Crescendo/7200 and Linux

9. Gateway/Proxy server

10. Q: how to select the interface of the default gateway ?

11. Proxy vs gateway.

12. Proxy/gateway for mail

13. Redundancy using double interface & gateway