Community discussions

MikroTik App
 
sanddy19
just joined
Topic Author
Posts: 9
Joined: Thu Nov 17, 2016 11:07 am

VPN does not allow multiple connections from single IP

Mon Jul 04, 2022 11:09 am

Hi,

We have a RB20411 and have configured L2tp/IPsec VPN on it. Its been working great when our team members connect from different locations. But if there are some team members at the same location like cafe / co-sharing place (basically behind the same router) then only one of them is able to connect via VPN. The connection for others get refused.
Relevant parts of the script below. Can anyone suggest what should be done to allow multiple users to VPN using the same router over internet? Since its a cafe/cosharing space we do not have access to their networks.
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=\
    aes-256-cbc,aes-192-cbc,aes-128-cbc,3des pfs-group=none
/ip pool
add name=dhcp_pool1 ranges=192.168.2.101-192.168.2.175
add name=VPN_pool ranges=192.168.2.176-192.168.2.254
/ip dhcp-server
add address-pool=dhcp_pool1 authoritative=after-2sec-delay disabled=no \
    interface=bridge1 name=office
/ppp profile
add bridge=bridge1 change-tcp-mss=yes dns-server=192.168.2.1 local-address=\
    192.168.2.1 name=L2TP-IN-Profile remote-address=VPN_pool use-encryption=\
    yes use-upnp=yes
/queue type
add kind=pcq name=PCQ pcq-classifier=dst-address pcq-dst-address6-mask=64 \
    pcq-rate=384 pcq-src-address6-mask=64
/interface l2tp-server server
set authentication=mschap2 default-profile=L2TP-IN-Profile enabled=yes \
    ipsec-secret=XXXXXX use-ipsec=yes
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11114
Joined: Mon Dec 04, 2017 9:19 pm

Re: VPN does not allow multiple connections from single IP

Mon Jul 04, 2022 4:14 pm

 
sanddy19
just joined
Topic Author
Posts: 9
Joined: Thu Nov 17, 2016 11:07 am

Re: VPN does not allow multiple connections from single IP

Mon Jul 04, 2022 5:40 pm

this seems to be what I was looking for, but seach was not showinganswers.Thanks a lot for your help,will try the solution provided in the other thread.
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: VPN does not allow multiple connections from single IP

Mon Jul 04, 2022 7:47 pm

I guess you mean RB2011...
I would use another VPN protocol, on V7 you have many nice choices like wireguard and OVPN with UDP support...
 
sanddy19
just joined
Topic Author
Posts: 9
Joined: Thu Nov 17, 2016 11:07 am

Re: VPN does not allow multiple connections from single IP

Tue Jul 05, 2022 9:24 am

I guess you mean RB2011...
I would use another VPN protocol, on V7 you have many nice choices like wireguard and OVPN with UDP support...
Sorry, I meant RB 4011.
Thanks for the reference, will check them out. Do these new ones work with native windows clients or they need another software for VPN? I will read up on it.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11114
Joined: Mon Dec 04, 2017 9:19 pm

Re: VPN does not allow multiple connections from single IP

Tue Jul 05, 2022 9:35 am

Do these new ones work with native windows clients or they need another software for VPN?
Both Wireguard and OpenVPN currently need 3rd party software on Windows. You can use IKEv2, which is supported by the native Windows client, but it requires to deal with certificates - you either need the server certificate to be signed by a CA recognized by Windows, or you need to import your own CA certificate to each Windows client machine. And you either need the clients to authentify using their own certificates, or you have to use a RADIUS server at server side to let the clients authentify using username and password (User Manager of RouterOS 7 is enough, User Manager of RouterOS 6 is not).
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: VPN does not allow multiple connections from single IP

Tue Jul 05, 2022 3:03 pm

As @sindy said, they need 3rd party software, but they are easy to use...

Also in v7 the RB4011 supports VLAN in Hardware using Bridge VLAN filtering, in case you need them in the future... Its out of the scope of your question but since i mentioned ROS v7 i think it should be mentioned...

Who is online

Users browsing this forum: tornadoro and 22 guests