is it possible to port forward using ppp nat ??

Hello everyone !

I need to port forward 3074 from destination external device (tun0) to internal device which (em0) but I need it using ppp nat.

I enabled ppp nat in rc.conf and it masquerade tun0 device from internal device now I need to port forward I tried with PF but it gives me strict nat and with ppp nat it gives me moderate so I will stick with ppp nat.

Thanks.
 
It'll be easier if you let one of the firewalls do the NAT and/or redirections.
 
Huh. TIL.

But the ppp man page claims:

nat port proto targetIP:targetPort[-targetPort] aliasPort[-aliasPort]
[remoteIP:remotePort[-remotePort]]
This command causes incoming proto connections to aliasPort to be
redirected to targetPort on targetIP. proto is either “tcp” or
“udp”.

A range of port numbers may be specified as shown above. The
ranges must be of the same size.

If remoteIP is specified, only data coming from that IP number is
redirected. remotePort must either be “0” (indicating any source
port) or a range of ports the same size as the other ranges.

This option is useful if you wish to run things like Internet phone
on machines behind your gateway, but is limited in that connections
to only one interior machine per source machine and target port are
possible.
You have no doubt searched the man page before asking here, so why didn't that work for you?
 
Back
Top