Script on pfsense box using a specific interface (gateway)
-
In trying to get a script working on the pfsense box as per this http://forum.pfsense.org/index.php/topic,65094.0.html. I created the script on the box via ssh. The script issues wget commands to a specific URL that is only reachable via a certain interface.
My pfsense box has a WAN, OPT1, OPT2 interfaces. OPT1 is connected to one vpn server and OPT2 another. I would like a script to run on the pfsense box (192.168.1.1 address) and have it go out via the OPT1 (ovpnc2) interface. Currently, it goes out via OPT2 (ovpnc3). How can I change this behaviour?
Does it have something to do with the order of creation of the interfaces?
(sorry for double posting, in openvpn forum)
I am using 2.1RC1 (pfSense-LiveCD-2.1-RC1-i386-20130801-1902.iso)Doing netstat in a ssh reveals:
Destination Gateway Flags Refs Use Netif Expire
0.0.0.0/1 10.* UGS 0 56312 ovpnc3 =>
default 198.* UGS 0 700 vmx3f1I think the problem lies with 0.0.0.0/1. Does that signify all traffic? If so, I see it using ovpnc3 which is what I don't want.
I thought whichever gateway has "default" checked is the default getway? The default line changes when I do that but not the 0.0.0.0/1 line.