Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Transparent Proxy (not using astaro's)

I've asked this before, and was told it was a simple DNAT task.  This is what I thought, and I never figured out how to do this.

What I want to do is Forward all destination 0.0.0.0:80 requests to another internal address like 10.100.30.50:8080 (so that I can manage my own transparent proxy with content filtering and such).

However, when one tries to define a DNAT, there is no destination address available for ANY (0.0.0.0/0) although it is defined in the network definitions.  So, the end result is, I can't create a DNAT rule that says "Forward all outbound p:80 traffic to my internal host 10.100.30.50:8080"

Can I create a redirect rule that does this manually.  Can a redirect rule redir both the port and address, or does it only allow you to redir the port on the machine which receieved the request (I noticed this is how transparent proxy works).

Put simply, I want to do this (not knowing if this is the right syntax):
pkts bytes target     prot opt in     out     source               destination
0     0 REDIRECT   tcp  --  *      *       10.0.0.0/8        0.0.0.0/0          tcp spts:1024:65535 dpt:80 redir 10.100.30.50:8080 

Or I guess:
pkts bytes target     prot opt in     out     source               destination
0     0 DNAT       tcp  --  *      *       10.0.0.0/8            0.0.0.0/0      tcp spts:1024:65535 dpt:80 to:10.100.30.50:8080 

Via the webadmin... or even commandline.. knowing that it won't break something.

Thanks!
..n8


This thread was automatically locked due to age.
Parents
  • I just realized that if this can be done, the likelyhood of creating a loop.  I would like to augment the above situation, to handle requests with the source port of my proxy (10.100.30.50) to be able to get through the firewall without being affected by the DNAT or REDIRECT rule.

    if it can be done...  [:)]

    ..n8
Reply
  • I just realized that if this can be done, the likelyhood of creating a loop.  I would like to augment the above situation, to handle requests with the source port of my proxy (10.100.30.50) to be able to get through the firewall without being affected by the DNAT or REDIRECT rule.

    if it can be done...  [:)]

    ..n8
Children
No Data