Change outgoing IP OpenVPN



  • Hi Guys,
    in Our Productions we have two WAN, WAN1 and WAN2
    we want to route the openVPN using WAN1 GW1 and traffic ( internet/surfing ) Wan2.
    i have followed the steps here https://forum.netgate.com/topic/118529/change-openvpn-outgoing-ip
    but unfortunately i am not able to get the tunnel up. the tunnels works only when GW1 is default GW of the pfsense and when WAN2 is default the tunnel goes down.
    Can someone please advies what am i doing wrong ?
    i have created a outband traffic using the answer of the author.

    So you should have a WAN2 IP and a WAN2 GW. In the firewall rule for the upstream traffic you have to set the WAN2 GW to route the upstream traffic to it. In Firewall > NAT > outbound you have to set a rule on WAN2 interface with source any or a particular network like the vpn tunnel network and translation address = interface address (WAN2 IP).
    

    So on the Firewall >> NAT >> Outbound i've created a rule on interface WAN1 Protocol any Source adres LAN NET Source Port Any, Destination adres any, Destination port any Translation / target WAN1 adres

    unfortunately it didnt fix my issue. i hope someone can help as i've been facing this issue for long time



  • @cyberbot said in Change outgoing IP OpenVPN:

    we want to route the openVPN using WAN1 GW1 and traffic ( internet/surfing ) Wan2.

    Which VPN traffic? Are you running an OpenVPN server as the guy in the other tread and want connected clients to get WAN1 IP when they go out to the internet as in the link or are you running a VPN client on pfSense?



  • Thank you for your answer,
    yes i am using openvpn as my tittle said.
    i am running vpnclient on pfsense on both sides.


Log in to reply