OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: randomwalk on May 31, 2020, 11:39:17 pm

Title: How to redirect domain to a custom IP address AND specific port?
Post by: randomwalk on May 31, 2020, 11:39:17 pm
Is there a way to redirect all LAN traffic to a particular address (e.g. www.google.com) to a particular IP at a specific port (e.g., 192.168.1.20:8000)?

I want to redirect all Google searches to this internal IP address at a non-standard port.  I'm guessing you can do this by making a custom DNS entry in unbound?  But I need the traffic directed to a particular port, and I don't think DNS does that.  I would appreciate any ideas on how to achieve this.
Title: Re: How to redirect domain to a custom IP address AND specific port?
Post by: Steve28 on June 03, 2020, 03:40:05 pm
First make an overdrive in Unbound DNS -> Overrides.  At that point I think it would be easier to set up whatever IP you are forwarding to just listen on port 80 and/or 443.    The other option is to use NAT to port forward.

Just FYI chrome has the certificates for all google domains pinned.  That means no chromium based browser will allow what you are trying to do.