Firewall - redirection of web traffic.

Started by Martinezio, June 29, 2015, 11:50:42 AM

Previous topic - Next topic
Hi :)

Some of You probably know my case from this topic: https://forum.opnsense.org/index.php?topic=715.0 ;)

According to this networking schema, how to make such thing:

- redirect all web traffic from client's requests to specified IP address located in other VLAN?

Facts:
- client uses VLAN 2 (interface: OPT2) with network address of 172.20.110.0/24
- webserver, which I want to redirect all web traffic to him, uses VLAN 1 (interface: LAN), and have IP address 192.168.3.220.

I tried to use NAT for incoming connection to interface OPT2 and redirect to some other external IP (not used on this firewall) and it worked well, but (since I want to make this in closed environment) when I use internal IP address, this solution doesn't work - page will not open and browser show timeout.

My goal is to show on the client's machine specified webpage, when I want to tell him something, ie. he didn't pay his invoices ;)

Thanks in advance for any help and ideas.

Cheers!


You should be able to get that to work with the "divert" feature in the firewall rules given that you set the rules manually (or use a table for the source IPs that you want redirected).