Community discussions

MikroTik App
 
haohaolee
just joined
Topic Author
Posts: 6
Joined: Fri Dec 07, 2012 8:46 am

how to dstnat a packet from a dynamic interface?

Fri Oct 18, 2013 11:52 am

Hi all,

I know how to dstnat a packet from a static interface like WAN, PPPOE etc, but now I'm thinking about do it for a dynamic interface for those pptp or l2tp interface.

I have tried this:

/ppp profile
set numbers=1 incoming-filter=vpn-filter

/ip firewall nat
add chain=dstnat action=jump jump-target=ppp
add chain=vpn-filter action=dst-nat protocol=udp src-port=68 dst-port=67 to-addresses=192.168.1.2

but `print dynamic` doesn't show the dynamic interface there.

For the input forward output chain, it does work, but why nat doesn't?

ps: actually I want redirect dhcp requests to a dhcp server in LAN from vpn client

Who is online

Users browsing this forum: No registered users and 110 guests