From PFSenseDocs
| This article is part of the HOWTO series.
|
Summary
Connecting to a remote PPTP server (outbound) while using the same IP for incoming PPTP connections currently does not work due to limitations in PF's NAT. The only currently working choice is to NAT the outbound PPTP connection to an additional public IP.
Reroute traffic for remote PPTP servers out an additional IP
It would be nice to map outbound GRE and tcp/1723 traffic to another VIP, but that will take a different approach that is not directly available on 1.2.x. There is, however, a package called "onatproto" under System > Packages that will add a protocol option to the outbound NAT rules. This will let you create an outbound NAT rule that will move outgoing GRE traffic to a VIP instead of the WAN IP.
Reroute traffic for a specific PPTP server out an additional IP
This works by the directing all traffic destined for the remote PPTP server's IP address out another VIP instead of the WAN IP.
Add Virtual IP for your additional public IP to use for outbound PPTP
- Click Firewall > Virtual IP
- Click "+" to add
- Choose Type: Proxy ARP
- Interface: WAN
- IP Address Type: Single Address
- IP Address: <your additional public IP>
- Description: Whatever you want, something like "VIP for outbound PPTP"
- Click Save
- Click Apply
Enable Advanced Outbound NAT (AON) rules
- Click Firewall > NAT
- Click the Outbound tab
- Select Manual Outbound NAT rule generation (Advanced Outbound NAT (AON))
- Click Save
Setup AON rule for single remote PPTP server
- Click the "+" at the top of the list of NAT rules
- Interface: WAN
- Source Type: Network
- Source Address: <your LAN subnet>/<your LAN subnet mask> (e.g. 192.168.1.1 / 24 )
- Destination Type: Network
- Destination Address: <IP of the remote PPTP server>/32
- Translation Address: Pick your newly added VIP from the list
- Description: Whatever you want, something like "Outbound PPTP"
- Click Save
- Click Apply
- Double check that the newly added rule is at the top of the list. If it is not, move it up.