Community discussions

MikroTik App
 
liveup
just joined
Topic Author
Posts: 6
Joined: Fri Aug 19, 2022 3:08 pm

l2tp,on up scripts get src.address?

Tue Sep 27, 2022 4:23 am

I want to add the public IP accessed by the client to the IP white list when I successfully link l2tp
In this case, ROS only opens port mapping to whitelist IP addresses
You do not have the required permissions to view the files attached to this post.
 
liveup
just joined
Topic Author
Posts: 6
Joined: Fri Aug 19, 2022 3:08 pm

Re: l2tp,on up scripts get src.address?

Tue Sep 27, 2022 3:12 pm

 
tdw
Forum Guru
Forum Guru
Posts: 1841
Joined: Sat May 05, 2018 11:55 am

Re: l2tp,on up scripts get src.address?

Tue Sep 27, 2022 3:27 pm

Scripts are not needed, create a PPP profile including an address-list= property. Client addresses will be added to the list when the session is established, and also removed when the session terminates.
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1275
Joined: Tue Jun 23, 2015 2:35 pm

Re: l2tp,on up scripts get src.address?

Wed Sep 28, 2022 4:42 am

just to be more clear

The script that @liveup found will cake the ip-add which is hitting the router (public). PPP profile address-list will cake the remote ip-address.

Who is online

Users browsing this forum: No registered users and 22 guests