-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How many clients that many config files (not all clients want same dns servers)? #1562
Comments
When you do So in another words you will be able to I tried everything. Let me know is this makes sense what i wrote. |
@goors Hello! The feature you mentioned (set different DNS servers for each IKEv2 client) cannot currently be done automatically using the IKEv2 script. The However, you can set different DNS server(s) for each IKEv2 client by manually editing
Save the file and run |
Thank you, i will try it and let you know. Should I close feature request? |
Checklist
I am not sure if you resolves this already, I can not find it in docs.
No matter how many clients you add you will only have one file in
/etc/ipsec.d/ikev2.conf
.Like that
VPN_DNS_SRV1=10.7.0.68 VPN_DNS_SRV2=8.8.8.8 bash ikev2.sh --addclient clientName
it is pointless to haveVPN_DNS_SRV1
andVPN_DNS_SRV2
since file/etc/ipsec.d/ikev2.conf
will be overwritten with dns (custom or google).Problem that this is cauisng is in fact you have just one client since
/etc/ipsec.conf
has include/etc/ipsec.d/*.conf
.That means only one file all the time.
What if i want to have like this
client1
modecfgdns="10.8.0.68 8.8.8.8"
client 2
modecfgdns="10.7.0.68 8.8.8.8"
I want each client to have different dns. Now there is no option to do this because
VPN_DNS_SRV1
don't do anything as env var to your script.Is there a way to not save each client and have just 1 file? How many clients that many
.conf
files?The text was updated successfully, but these errors were encountered: