What's new

ASUS Merlin -Squid proxy

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

balajirajahpb

New Around Here
I got a lan network br0 192.168.1.0/24 on the same network i got a proxy 192.168.1.249:8080. en0 is my ISP external.

I'm looking to route/redirect 80 and 443 traffic from 192.168.1.122 traffic via proxy 192.168.1.249:8080

Can someone paste the iptables
 
You can't do it with iptables because the traffic is switched not routed. If you want a browser to use the proxy it should be set in the PC's "Internet options".
 
you can try:
iptables -t nat -A PREROUTING -i br0 -s 192.168.1.122 -p tcp --dport 80 -j DNAT --to 192.168.1.249:8080
iptables -t nat -A PREROUTING -i br0 -s 192.168.1.122 -p tcp --dport 443 -j DNAT --to 192.168.1.249:8080
 
@maurer's solution could well be right. I think I misunderstood what you were asking in post #1, I thought you were trying to redirect LAN traffic destined for 192.168.1.122 to 192.168.1.249 instead. What confused me was you saying "en0 is my ISP external" :confused:, which is an apple mac interface AFAIK. (But, as I said above, ideally you'd want to set the proxy server on the PC rather than trying to "hack it" on the router.)
 
Last edited:

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top