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.