[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Qube 2 port forwarding/redirection - how?
- Subject: Re: [cobalt-users] Qube 2 port forwarding/redirection - how?
- From: Jeff Lovell <jlovell@xxxxxxxxxx>
- Date: Tue Feb 29 17:23:44 2000
Jeff Davis wrote:
>
> Hopefully, someone else has been down this road before...
>
> I am trying to find a way to redirect all web traffic (IP port 80) to
> ip port 8080 (proxy server) on my Qube 2. I assumed (wrongfully)
> that the ip firewall would be able to do this. Not so, at least not
> with the current version. I have looked at a couple of packages
> (redir, fastforward) but they fail (address already in use). I
> assume this is because httpd is already using port 80.
>
> My final goal is this:
>
> 10.0.0.* (eth0) port 80 traffic is forced to port 8080 on eth1, so
> there is no need to configure clients to use the proxy, and no way
> for the client to avoid the proxy.
>
> If there is a better way to do this, I'm love to hear it...
This rule will redirect any traffic from 10.*.*.* trying to reach
port 80 through the qube to port 8080 instead.
/sbin/ipfwadm -I -a acc -P tcp -S 10.0.0.0/8 -D 0.0.0.0/0 80 -r 8080
ipfwadm will do the task for you, just not through the UI. I
suggest you thoroughly read the ipfwadm man page before working
with it. You could lock yourself out of the qube. But thankfully
there is the 'reset filters' available on the menu if you get
yourself into trouble.
Jeff