Redirecting a LAN IP to Another LAN IP



  • Hi,

    Thanks for the people behind pfSense. I am using it since 2 years.

    I have a question. Can I redirect internal LAN IP to another Internal LAN IP? I want redirect a blocked LAN IP and all PORT to a web server for displaying a warning page. Could you please help me which place do I have to go to configure,  like Port forwarding or firewall rules. I have tried it but no success. I am using pfSense 2.1.3

    Let say :

    From
    LAN - IP: 192.168.1.40
    **PORT:**Any
    TO
    LAN - IP: 192.168.1.50
    **PORT:**80

    Thanks
    Sabir


  • LAYER 8 Global Moderator

    Here is the thing, say 192.168.1.10 wants to go to 192.168.1.40

    Why would it go to pfsense IP?  192.168.1.?

    The only time pfsense is talked to is when your trying to leave your own network segment.  If your network segment is 192.168.1.0/24 – talking to any IP address on 192.168.1.1-254 would not talk to pfsense.  So your redirect doesn't work.

    Now if pfsense IP address is 192.168.1.40 - then sure you could redirect traffic to some other IP..  Or if the IP address is something other than pfsense address and on a different network segment, say internet, etc.  And traffic would go to pfsense then sure you can redirect it to where you want.  You could redirect say all dns queries this way, or you could say redirect http to your webserver that says hey you can not serf the web from here, etc..


Log in to reply