PPTP Server NAT Masquerade how to set out interface

hi,

Have a issue where the PPTP server successfully connect the client and create a dynamic interface e.g. name type PPTP Server binding

I need to masquerade from the network on the server side to the network on the client side,

if i add a Firewall NAT rule manually like:

chain: srcnat
out interface:
action: masquerade

my issue: whenever the connection drop and re-connect the “out interface” change to unknown.

Question: how can I configure the nat rule to automatically masquerade after the pptp server binding is established.

OK, I know that it is an old one, but I’ve reached it while searching for something else and i’ll write a suggestion just to other’s in need.

You should create a static interface for this purpose. Simply add an “PPTP Server Binding” type interface in PPP interfaces with the name of the connecting user. That way an existing interface will be used instead of creating a dynamic one.