OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 15.1 Legacy Series »
  • Firewall - redirection of web traffic.
« previous next »
  • Print
Pages: [1]

Author Topic: Firewall - redirection of web traffic.  (Read 15631 times)

Martinezio

  • Newbie
  • *
  • Posts: 44
  • Karma: 3
    • View Profile
Firewall - redirection of web traffic.
« on: June 29, 2015, 11:50:42 am »
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!
Logged

Martinezio

  • Newbie
  • *
  • Posts: 44
  • Karma: 3
    • View Profile
Re: Firewall - redirection of web traffic.
« Reply #1 on: July 02, 2015, 02:26:50 pm »
Someone something? ;) Please...
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: Firewall - redirection of web traffic.
« Reply #2 on: July 03, 2015, 09:01:15 am »
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).
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 15.1 Legacy Series »
  • Firewall - redirection of web traffic.
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2