2

I have a machine with a pfsense running. It is configured with three ethernet cards.

LAN 192.168.2.1/21
WAN1 200.41.X.2/24
WAN2 200.41.X.3/24
ISP Gateway 200.41.X.1

This is a connection with 5 different IP addresses.

WAN1 and WAN2 are directly connected to my ISP router.

I need a way to configure some clients navigating through WAN1 and some through WAN2. I am new to pfsense so, please, if you can send me some examples to do this. I can add two squids if it is necessary.

Thanks a lot.

1 Answer 1

3

It's quite simple: just create a firewall rule on your LAN interface that matches the traffic desired (by client IP, perhaps), and then expand the "Gateway" section of "Advanced Features" at the bottom of the rule creation page and select your desired gateway for that traffic.

This technique is called "policy routing", and is present not only on pfsense, but nearly all other routing platforms as well.

5
  • I tried to do as you said, but I have only one Gateway from my ISP Router. Maybe I'm missing some configuration.
    – leandronn
    Aug 21, 2014 at 20:08
  • If that's the case, you don't have two internet connections set up, or at least not set up correctly.
    – EEAA
    Aug 21, 2014 at 20:11
  • Ok, here's the configuration I have:
    – leandronn
    Aug 21, 2014 at 20:13
  • Please don't attempt to put configuration in comments. Edit your question and add the details there.
    – EEAA
    Aug 21, 2014 at 20:13
  • Changed configuration
    – leandronn
    Aug 21, 2014 at 20:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .