Netgate m1n1wall

Author Topic: Virtual Gateway  (Read 2228 times)

0 Members and 1 Guest are viewing this topic.

Offline zinder

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Virtual Gateway
« on: December 14, 2010, 03:43:35 pm »
Hi,

pfsense 1.2.3

I have two LANs (two NICs) and one WAN (IP=xxx.xxx.xxx.18). My ISP has provided me an extra public IP address (xxx.xxx.xxx.20). I can set up a virtual IP for .20 and port forward to the appropriate server. Is there a way to set up a virtual IP (.20) as a gateway? I want LAN 1 to use the normal WAN gateway (.18) and LAN 2 to use a virtual gateway (.20)? I want all LAN 2 traffic to look like it comes from the virtual IP (.20) and port forward that virtual IP (.20) to LAN 2 servers.

Thanks

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14990
  • Karma: +4/-0
    • View Profile
Re: Virtual Gateway
« Reply #1 on: December 15, 2010, 10:34:48 am »
That isn't a gateway in the traditional sense.

What you want is manual outbound NAT. Firewall > NAT, Outbound tab. Switch to manual, and then edit rule for LAN2, and choose the .20 IP for the translation address.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!