Hello,
I have the following configuration and everything works fine, except that the VPN clients need to specify fully qualified hostnames to connect to services inside the lan.
I looked for a way to specify domain-name for l2tp->remote access but I could not find any.
Also note that I use dnsmasq to register lan clients in the local dns.
Any suggestion how to force domain-name home.local on the vpn clients connecting to the vpn server?
====================
show vpn
====================
ipsec {
ipsec-interfaces {
interface eth0
}
}
l2tp {
remote-access {
authentication {
local-users {
username <removed> {
password <removed>
}
}
mode local
}
client-ip-pool {
start 192.168.1.30
stop 192.168.1.37
}
dhcp-interface eth0
dns-servers {
server-1 192.168.1.1
server-2 192.168.1.1
}
ipsec-settings {
authentication {
mode pre-shared-secret
pre-shared-secret <removed>
}
}
}
}
==========================================
show service dhcp-server shared-network-name LAN
==========================================
authoritative enable
subnet 192.168.1.0/24 {
default-router 192.168.1.1
dns-server 192.168.1.1
domain-name home.local
lease 86400
start 192.168.1.38 {
stop 192.168.1.243
}
========================================
show system
=======================================
domain-name home.local
host-name router
ip {
override-hostname-ip 192.168.1.1
}
name-server 127.0.0.1