Not getting IP address in SoftEther Bridged Mode

i did the same but stuck at “Requesting IP address to the DHCP server in the VPN”

Can you verify that you replaced the init script for the SoftEther VPN server? If you didn’t edit /etc/init.d/vpnserver then it’s probable that you aren’t raising the tap_soft adapter.

Can you go ahead and do ifconfig tap_soft and let me know the output? You can also do service dnsmasq status and post the output here.

I have edited vpnserver, and it gave permission deny error then I used chmod commands. Then vpnserver started fine

I see. Can you post the commands I mentioned earlier?

Can you verify that you replaced the init script for the SoftEther VPN server? If you didn’t edit /etc/init.d/vpnserver then it’s probable that you aren’t raising the tap_soft adapter.
Can you go ahead and do ifconfig tap_soft and let me know the output? You can also do service dnsmasq status and post the output here.

I think the problem is with iptables, it doesn’t save postrouting



image

It’s possible. Did you install iptables-persistent to save that iptables rule and apply it on startup? You’ll want to re-add the iptables rule, then install the package, otherwise you’ll have to do dpkg-reconfigure iptables-persistent.

Btw what is the VPS IP? ip i used to connect with VPS from putty or ipconfig eth0 ip from VPS.

You need to replace that with the IP address of your server. It would look something like iptables -t nat -A POSTROUTING -s 10.42.10.0/24 -j SNAT --to-source 1.1.1.1

If possible can you make a video for Softether VPN with Local Bridge from scratch and upload to youtube that would be really great.

I have plans to do this soon. :smile: In the meantime, I hope the forum post on it will suffice.

Did you get the DHCP server working on your server?

No but i found this guide, where eth1 = tap_soft if i am not wrong. https://www.howtoforge.com/nat_iptables

NOT WORKING

In our case, we don’t need to worry about this. It might be best to try a complete fresh install of your server so that we can pinpoint where the actual issue is. However, before you do, please run the following and post the output: journalctl -u dnsmasq

It didn’t allowed me to post text file and i tried fresh install but didn’t worked

Log File
-- Logs begin at Sun 2019-01-20 09:15:16 UTC, end at Sun 2019-05-12 06:11:25 UTC. --
May 11 13:11:08 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:11:08 ip-172-31-10-177 dnsmasq[3604]: dnsmasq: syntax check OK.
May 11 13:11:08 ip-172-31-10-177 dnsmasq[3623]: started, version 2.79 cachesize 150
May 11 13:11:08 ip-172-31-10-177 dnsmasq[3623]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 11 13:11:08 ip-172-31-10-177 dnsmasq[3623]: reading /etc/resolv.conf
May 11 13:11:08 ip-172-31-10-177 dnsmasq[3623]: using nameserver 127.0.0.53#53
May 11 13:11:08 ip-172-31-10-177 dnsmasq[3623]: read /etc/hosts - 7 addresses
May 11 13:11:08 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:24:24 ip-172-31-10-177 dnsmasq[3623]: reading /etc/resolv.conf
May 11 13:24:24 ip-172-31-10-177 dnsmasq[3623]: using nameserver 127.0.0.53#53
May 11 13:26:13 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:26:13 ip-172-31-10-177 dnsmasq[3623]: exiting on receipt of SIGTERM
May 11 13:26:13 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:26:13 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:26:13 ip-172-31-10-177 dnsmasq[4107]: dnsmasq: syntax check OK.
May 11 13:26:13 ip-172-31-10-177 dnsmasq[4126]: started, version 2.79 cachesize 150
May 11 13:26:13 ip-172-31-10-177 dnsmasq[4126]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 11 13:26:13 ip-172-31-10-177 dnsmasq-dhcp[4126]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 11 13:26:13 ip-172-31-10-177 dnsmasq-dhcp[4126]: DHCP, sockets bound exclusively to interface tap_soft
May 11 13:26:13 ip-172-31-10-177 dnsmasq[4126]: reading /etc/resolv.conf
May 11 13:26:13 ip-172-31-10-177 dnsmasq[4126]: using nameserver 127.0.0.53#53
May 11 13:26:13 ip-172-31-10-177 dnsmasq[4126]: read /etc/hosts - 7 addresses
May 11 13:26:13 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:26:52 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:26:52 ip-172-31-10-177 dnsmasq[4126]: exiting on receipt of SIGTERM
May 11 13:26:52 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:26:52 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:26:52 ip-172-31-10-177 dnsmasq[4171]: dnsmasq: syntax check OK.
May 11 13:26:52 ip-172-31-10-177 dnsmasq[4190]: started, version 2.79 cachesize 150
May 11 13:26:52 ip-172-31-10-177 dnsmasq[4190]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 11 13:26:52 ip-172-31-10-177 dnsmasq-dhcp[4190]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 11 13:26:52 ip-172-31-10-177 dnsmasq-dhcp[4190]: DHCP, sockets bound exclusively to interface tap_soft
May 11 13:26:52 ip-172-31-10-177 dnsmasq[4190]: reading /etc/resolv.conf
May 11 13:26:52 ip-172-31-10-177 dnsmasq[4190]: using nameserver 127.0.0.53#53
May 11 13:26:52 ip-172-31-10-177 dnsmasq[4190]: read /etc/hosts - 7 addresses
May 11 13:26:52 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:30:33 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:30:34 ip-172-31-10-177 dnsmasq[4190]: exiting on receipt of SIGTERM
May 11 13:30:34 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
-- Reboot --
May 11 13:34:18 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:34:18 ip-172-31-10-177 dnsmasq[1097]: dnsmasq: syntax check OK.
May 11 13:34:18 ip-172-31-10-177 dnsmasq[1104]: dnsmasq: unknown interface tap_soft
May 11 13:34:18 ip-172-31-10-177 dnsmasq[1104]: unknown interface tap_soft
May 11 13:34:18 ip-172-31-10-177 dnsmasq[1104]: FAILED to start up
May 11 13:34:18 ip-172-31-10-177 systemd[1]: dnsmasq.service: Control process exited, code=exited status=2
May 11 13:34:18 ip-172-31-10-177 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 11 13:34:18 ip-172-31-10-177 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:39:52 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:39:52 ip-172-31-10-177 dnsmasq[1860]: dnsmasq: syntax check OK.
May 11 13:39:52 ip-172-31-10-177 dnsmasq[1869]: dnsmasq: unknown interface tap_soft
May 11 13:39:52 ip-172-31-10-177 dnsmasq[1869]: unknown interface tap_soft
May 11 13:39:52 ip-172-31-10-177 dnsmasq[1869]: FAILED to start up
May 11 13:39:52 ip-172-31-10-177 systemd[1]: dnsmasq.service: Control process exited, code=exited status=2
May 11 13:39:52 ip-172-31-10-177 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 11 13:39:52 ip-172-31-10-177 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:42:42 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:42:42 ip-172-31-10-177 dnsmasq[1939]: dnsmasq: syntax check OK.
May 11 13:42:42 ip-172-31-10-177 dnsmasq[1949]: dnsmasq: unknown interface tap_soft
May 11 13:42:42 ip-172-31-10-177 dnsmasq[1949]: unknown interface tap_soft
May 11 13:42:42 ip-172-31-10-177 dnsmasq[1949]: FAILED to start up
May 11 13:42:42 ip-172-31-10-177 systemd[1]: dnsmasq.service: Control process exited, code=exited status=2
May 11 13:42:42 ip-172-31-10-177 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 11 13:42:42 ip-172-31-10-177 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:45:26 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:45:26 ip-172-31-10-177 dnsmasq[2130]: dnsmasq: syntax check OK.
May 11 13:45:26 ip-172-31-10-177 dnsmasq[2143]: dnsmasq: unknown interface tap_soft
May 11 13:45:26 ip-172-31-10-177 dnsmasq[2143]: unknown interface tap_soft
May 11 13:45:26 ip-172-31-10-177 dnsmasq[2143]: FAILED to start up
May 11 13:45:26 ip-172-31-10-177 systemd[1]: dnsmasq.service: Control process exited, code=exited status=2
May 11 13:45:26 ip-172-31-10-177 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 11 13:45:26 ip-172-31-10-177 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:53:05 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:53:05 ip-172-31-10-177 dnsmasq[2315]: dnsmasq: syntax check OK.
May 11 13:53:05 ip-172-31-10-177 dnsmasq[2334]: started, version 2.79 cachesize 150
May 11 13:53:05 ip-172-31-10-177 dnsmasq[2334]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 11 13:53:05 ip-172-31-10-177 dnsmasq-dhcp[2334]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 11 13:53:05 ip-172-31-10-177 dnsmasq-dhcp[2334]: DHCP, sockets bound exclusively to interface tap_soft
May 11 13:53:05 ip-172-31-10-177 dnsmasq[2334]: reading /etc/resolv.conf
May 11 13:53:05 ip-172-31-10-177 dnsmasq[2334]: using nameserver 127.0.0.53#53
May 11 13:53:05 ip-172-31-10-177 dnsmasq[2334]: read /etc/hosts - 7 addresses
May 11 13:53:05 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:56:10 ip-172-31-10-177 dnsmasq-dhcp[2334]: DHCP packet received on tap_soft which has no address
May 11 13:56:10 ip-172-31-10-177 dnsmasq-dhcp[2334]: DHCP packet received on tap_soft which has no address
May 11 13:56:12 ip-172-31-10-177 dnsmasq-dhcp[2334]: DHCP packet received on tap_soft which has no address
May 11 13:56:15 ip-172-31-10-177 dnsmasq-dhcp[2334]: DHCP packet received on tap_soft which has no address
May 11 13:56:22 ip-172-31-10-177 dnsmasq-dhcp[2334]: DHCP packet received on tap_soft which has no address
May 11 13:58:03 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:58:03 ip-172-31-10-177 dnsmasq[2334]: exiting on receipt of SIGTERM
May 11 13:58:03 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:58:03 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 13:58:03 ip-172-31-10-177 dnsmasq[2727]: dnsmasq: syntax check OK.
May 11 13:58:04 ip-172-31-10-177 dnsmasq[2736]: started, version 2.79 cachesize 150
May 11 13:58:04 ip-172-31-10-177 dnsmasq[2736]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 11 13:58:04 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 11 13:58:04 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP, sockets bound exclusively to interface tap_soft
May 11 13:58:04 ip-172-31-10-177 dnsmasq[2736]: reading /etc/resolv.conf
May 11 13:58:04 ip-172-31-10-177 dnsmasq[2736]: using nameserver 127.0.0.53#53
May 11 13:58:04 ip-172-31-10-177 dnsmasq[2736]: read /etc/hosts - 7 addresses
May 11 13:58:04 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 11 13:58:26 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP packet received on tap_soft which has no address
May 11 13:58:26 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP packet received on tap_soft which has no address
May 11 13:58:29 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP packet received on tap_soft which has no address
May 11 13:58:35 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP packet received on tap_soft which has no address
May 11 13:58:40 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP packet received on tap_soft which has no address
May 11 13:58:55 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP packet received on tap_soft which has no address
May 11 13:59:27 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP packet received on tap_soft which has no address
May 11 13:59:39 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP packet received on tap_soft which has no address
May 11 13:59:39 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP packet received on tap_soft which has no address
May 11 13:59:43 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP packet received on tap_soft which has no address
May 11 13:59:45 ip-172-31-10-177 dnsmasq-dhcp[2736]: DHCP packet received on tap_soft which has no address
May 11 14:01:21 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 11 14:01:21 ip-172-31-10-177 dnsmasq[2736]: exiting on receipt of SIGTERM
May 11 14:01:21 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 11 14:01:21 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 14:01:21 ip-172-31-10-177 dnsmasq[2890]: dnsmasq: syntax check OK.
May 11 14:01:21 ip-172-31-10-177 dnsmasq[2909]: started, version 2.79 cachesize 150
May 11 14:01:21 ip-172-31-10-177 dnsmasq[2909]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 11 14:01:21 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 11 14:01:21 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP, sockets bound exclusively to interface tap_soft
May 11 14:01:21 ip-172-31-10-177 dnsmasq[2909]: reading /etc/resolv.conf
May 11 14:01:21 ip-172-31-10-177 dnsmasq[2909]: using nameserver 127.0.0.53#53
May 11 14:01:21 ip-172-31-10-177 dnsmasq[2909]: read /etc/hosts - 7 addresses
May 11 14:01:21 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 11 14:01:31 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP packet received on tap_soft which has no address
May 11 14:01:31 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP packet received on tap_soft which has no address
May 11 14:01:34 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP packet received on tap_soft which has no address
May 11 14:01:37 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP packet received on tap_soft which has no address
May 11 14:01:44 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP packet received on tap_soft which has no address
May 11 14:02:01 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP packet received on tap_soft which has no address
May 11 14:02:32 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP packet received on tap_soft which has no address
May 11 14:02:37 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP packet received on tap_soft which has no address
May 11 14:02:42 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP packet received on tap_soft which has no address
May 11 14:02:58 ip-172-31-10-177 dnsmasq-dhcp[2909]: DHCP packet received on tap_soft which has no address
May 11 14:03:16 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 11 14:03:16 ip-172-31-10-177 dnsmasq[2909]: exiting on receipt of SIGTERM
May 11 14:03:16 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
-- Reboot --
May 11 14:36:20 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 14:36:20 ip-172-31-10-177 dnsmasq[1041]: dnsmasq: syntax check OK.
May 11 14:36:20 ip-172-31-10-177 dnsmasq[1052]: dnsmasq: unknown interface tap_soft
May 11 14:36:20 ip-172-31-10-177 dnsmasq[1052]: unknown interface tap_soft
May 11 14:36:20 ip-172-31-10-177 dnsmasq[1052]: FAILED to start up
May 11 14:36:20 ip-172-31-10-177 systemd[1]: dnsmasq.service: Control process exited, code=exited status=2
May 11 14:36:20 ip-172-31-10-177 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 11 14:36:20 ip-172-31-10-177 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
-- Reboot --
May 11 18:44:49 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 18:44:49 ip-172-31-10-177 dnsmasq[1103]: dnsmasq: syntax check OK.
May 11 18:44:50 ip-172-31-10-177 dnsmasq[1107]: dnsmasq: unknown interface tap_soft
May 11 18:44:50 ip-172-31-10-177 dnsmasq[1107]: unknown interface tap_soft
May 11 18:44:50 ip-172-31-10-177 dnsmasq[1107]: FAILED to start up
May 11 18:44:50 ip-172-31-10-177 systemd[1]: dnsmasq.service: Control process exited, code=exited status=2
May 11 18:44:50 ip-172-31-10-177 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 11 18:44:50 ip-172-31-10-177 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
May 11 19:24:26 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 19:24:26 ip-172-31-10-177 dnsmasq[3342]: dnsmasq: syntax check OK.
May 11 19:24:26 ip-172-31-10-177 dnsmasq[3361]: started, version 2.79 cachesize 150
May 11 19:24:26 ip-172-31-10-177 dnsmasq[3361]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 11 19:24:26 ip-172-31-10-177 dnsmasq-dhcp[3361]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 11 19:24:26 ip-172-31-10-177 dnsmasq-dhcp[3361]: DHCP, sockets bound exclusively to interface tap_soft
May 11 19:24:26 ip-172-31-10-177 dnsmasq[3361]: reading /etc/resolv.conf
May 11 19:24:26 ip-172-31-10-177 dnsmasq[3361]: using nameserver 127.0.0.53#53
May 11 19:24:26 ip-172-31-10-177 dnsmasq[3361]: read /etc/hosts - 7 addresses
May 11 19:24:26 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 11 19:24:37 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 11 19:24:37 ip-172-31-10-177 dnsmasq[3361]: exiting on receipt of SIGTERM
May 11 19:24:37 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 11 19:24:37 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 19:24:37 ip-172-31-10-177 dnsmasq[3409]: dnsmasq: syntax check OK.
May 11 19:24:37 ip-172-31-10-177 dnsmasq[3428]: started, version 2.79 cachesize 150
May 11 19:24:37 ip-172-31-10-177 dnsmasq[3428]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 11 19:24:37 ip-172-31-10-177 dnsmasq-dhcp[3428]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 11 19:24:37 ip-172-31-10-177 dnsmasq-dhcp[3428]: DHCP, sockets bound exclusively to interface tap_soft
May 11 19:24:37 ip-172-31-10-177 dnsmasq[3428]: reading /etc/resolv.conf
May 11 19:24:37 ip-172-31-10-177 dnsmasq[3428]: using nameserver 127.0.0.53#53
May 11 19:24:37 ip-172-31-10-177 dnsmasq[3428]: read /etc/hosts - 7 addresses
May 11 19:24:37 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 11 19:37:00 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 11 19:37:00 ip-172-31-10-177 dnsmasq[3428]: exiting on receipt of SIGTERM
May 11 19:37:00 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 11 19:37:00 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 19:37:00 ip-172-31-10-177 dnsmasq[3740]: dnsmasq: syntax check OK.
May 11 19:37:00 ip-172-31-10-177 dnsmasq[3759]: started, version 2.79 cachesize 150
May 11 19:37:00 ip-172-31-10-177 dnsmasq[3759]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 11 19:37:00 ip-172-31-10-177 dnsmasq-dhcp[3759]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 11 19:37:00 ip-172-31-10-177 dnsmasq-dhcp[3759]: DHCP, sockets bound exclusively to interface tap_soft
May 11 19:37:00 ip-172-31-10-177 dnsmasq[3759]: reading /etc/resolv.conf
May 11 19:37:00 ip-172-31-10-177 dnsmasq[3759]: using nameserver 127.0.0.53#53
May 11 19:37:00 ip-172-31-10-177 dnsmasq[3759]: read /etc/hosts - 7 addresses
May 11 19:37:00 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 11 19:38:08 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 11 19:38:08 ip-172-31-10-177 dnsmasq[3759]: exiting on receipt of SIGTERM
May 11 19:38:08 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 11 19:38:08 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 11 19:38:08 ip-172-31-10-177 dnsmasq[3805]: dnsmasq: syntax check OK.
May 11 19:38:08 ip-172-31-10-177 dnsmasq[3824]: started, version 2.79 cachesize 150
May 11 19:38:08 ip-172-31-10-177 dnsmasq[3824]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 11 19:38:08 ip-172-31-10-177 dnsmasq-dhcp[3824]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 11 19:38:08 ip-172-31-10-177 dnsmasq-dhcp[3824]: DHCP, sockets bound exclusively to interface tap_soft
May 11 19:38:08 ip-172-31-10-177 dnsmasq[3824]: reading /etc/resolv.conf
May 11 19:38:08 ip-172-31-10-177 dnsmasq[3824]: using nameserver 127.0.0.53#53
May 11 19:38:08 ip-172-31-10-177 dnsmasq[3824]: read /etc/hosts - 7 addresses
May 11 19:38:08 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 11 19:38:09 ip-172-31-10-177 dnsmasq[3824]: reading /etc/resolv.conf
May 11 19:38:09 ip-172-31-10-177 dnsmasq[3824]: using nameserver 127.0.0.53#53
May 11 19:38:09 ip-172-31-10-177 dnsmasq[3824]: reading /etc/resolv.conf
May 11 19:38:09 ip-172-31-10-177 dnsmasq[3824]: using nameserver 127.0.0.53#53
May 11 19:38:13 ip-172-31-10-177 dnsmasq[3824]: reading /etc/resolv.conf
May 11 19:38:13 ip-172-31-10-177 dnsmasq[3824]: using nameserver 127.0.0.53#53
May 11 19:38:13 ip-172-31-10-177 dnsmasq[3824]: reading /etc/resolv.conf
May 11 19:38:13 ip-172-31-10-177 dnsmasq[3824]: using nameserver 127.0.0.53#53
May 11 19:38:13 ip-172-31-10-177 dnsmasq[3824]: reading /etc/resolv.conf
May 11 19:38:13 ip-172-31-10-177 dnsmasq[3824]: using nameserver 127.0.0.53#53
May 11 19:38:14 ip-172-31-10-177 dnsmasq[3824]: reading /etc/resolv.conf
May 11 19:38:14 ip-172-31-10-177 dnsmasq[3824]: using nameserver 127.0.0.53#53
May 11 19:38:14 ip-172-31-10-177 dnsmasq[3824]: reading /etc/resolv.conf
May 11 19:38:14 ip-172-31-10-177 dnsmasq[3824]: using nameserver 127.0.0.53#53
May 11 19:44:44 ip-172-31-10-177 dnsmasq[3824]: reading /etc/resolv.conf
May 11 19:44:44 ip-172-31-10-177 dnsmasq[3824]: using nameserver 127.0.0.53#53
May 11 20:04:41 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 11 20:04:42 ip-172-31-10-177 dnsmasq[3824]: exiting on receipt of SIGTERM
May 11 20:04:42 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
-- Reboot --
May 12 05:09:34 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 12 05:09:34 ip-172-31-10-177 dnsmasq[1064]: dnsmasq: syntax check OK.
May 12 05:09:34 ip-172-31-10-177 dnsmasq[1079]: dnsmasq: unknown interface tap_soft
May 12 05:09:34 ip-172-31-10-177 dnsmasq[1079]: unknown interface tap_soft
May 12 05:09:34 ip-172-31-10-177 dnsmasq[1079]: FAILED to start up
May 12 05:09:34 ip-172-31-10-177 systemd[1]: dnsmasq.service: Control process exited, code=exited status=2
May 12 05:09:34 ip-172-31-10-177 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 12 05:09:34 ip-172-31-10-177 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
May 12 05:17:59 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 12 05:17:59 ip-172-31-10-177 dnsmasq[2619]: dnsmasq: syntax check OK.
May 12 05:17:59 ip-172-31-10-177 dnsmasq[2638]: started, version 2.79 cachesize 150
May 12 05:17:59 ip-172-31-10-177 dnsmasq[2638]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 12 05:17:59 ip-172-31-10-177 dnsmasq-dhcp[2638]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 12 05:17:59 ip-172-31-10-177 dnsmasq-dhcp[2638]: DHCP, sockets bound exclusively to interface tap_soft
May 12 05:17:59 ip-172-31-10-177 dnsmasq[2638]: reading /etc/resolv.conf
May 12 05:17:59 ip-172-31-10-177 dnsmasq[2638]: using nameserver 127.0.0.53#53
May 12 05:17:59 ip-172-31-10-177 dnsmasq[2638]: read /etc/hosts - 7 addresses
May 12 05:17:59 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 12 05:18:19 ip-172-31-10-177 dnsmasq[2638]: reading /etc/resolv.conf
May 12 05:18:19 ip-172-31-10-177 dnsmasq[2638]: using nameserver 127.0.0.53#53
May 12 05:18:19 ip-172-31-10-177 dnsmasq[2638]: reading /etc/resolv.conf
May 12 05:18:19 ip-172-31-10-177 dnsmasq[2638]: using nameserver 127.0.0.53#53
May 12 05:18:22 ip-172-31-10-177 dnsmasq[2638]: reading /etc/resolv.conf
May 12 05:18:22 ip-172-31-10-177 dnsmasq[2638]: using nameserver 127.0.0.53#53
May 12 05:18:22 ip-172-31-10-177 dnsmasq[2638]: reading /etc/resolv.conf
May 12 05:18:22 ip-172-31-10-177 dnsmasq[2638]: using nameserver 127.0.0.53#53
May 12 05:18:22 ip-172-31-10-177 dnsmasq[2638]: reading /etc/resolv.conf
May 12 05:18:22 ip-172-31-10-177 dnsmasq[2638]: using nameserver 127.0.0.53#53
May 12 05:18:23 ip-172-31-10-177 dnsmasq[2638]: reading /etc/resolv.conf
May 12 05:18:23 ip-172-31-10-177 dnsmasq[2638]: using nameserver 127.0.0.53#53
May 12 05:18:23 ip-172-31-10-177 dnsmasq[2638]: reading /etc/resolv.conf
May 12 05:18:23 ip-172-31-10-177 dnsmasq[2638]: using nameserver 127.0.0.53#53
May 12 05:32:09 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 12 05:32:09 ip-172-31-10-177 dnsmasq[2638]: exiting on receipt of SIGTERM
May 12 05:32:09 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 12 05:32:09 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 12 05:32:09 ip-172-31-10-177 dnsmasq[2996]: dnsmasq: syntax check OK.
May 12 05:32:09 ip-172-31-10-177 dnsmasq[3016]: started, version 2.79 cachesize 150
May 12 05:32:09 ip-172-31-10-177 dnsmasq[3016]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 12 05:32:09 ip-172-31-10-177 dnsmasq-dhcp[3016]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 12 05:32:09 ip-172-31-10-177 dnsmasq-dhcp[3016]: DHCP, sockets bound exclusively to interface tap_soft
May 12 05:32:09 ip-172-31-10-177 dnsmasq[3016]: reading /etc/resolv.conf
May 12 05:32:09 ip-172-31-10-177 dnsmasq[3016]: using nameserver 127.0.0.53#53
May 12 05:32:09 ip-172-31-10-177 dnsmasq[3016]: read /etc/hosts - 7 addresses
May 12 05:32:09 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 12 05:32:25 ip-172-31-10-177 dnsmasq[3016]: reading /etc/resolv.conf
May 12 05:32:25 ip-172-31-10-177 dnsmasq[3016]: using nameserver 127.0.0.53#53
May 12 05:32:25 ip-172-31-10-177 dnsmasq[3016]: reading /etc/resolv.conf
May 12 05:32:25 ip-172-31-10-177 dnsmasq[3016]: using nameserver 127.0.0.53#53
May 12 05:32:29 ip-172-31-10-177 dnsmasq[3016]: reading /etc/resolv.conf
May 12 05:32:29 ip-172-31-10-177 dnsmasq[3016]: using nameserver 127.0.0.53#53
May 12 05:32:29 ip-172-31-10-177 dnsmasq[3016]: reading /etc/resolv.conf
May 12 05:32:29 ip-172-31-10-177 dnsmasq[3016]: using nameserver 127.0.0.53#53
May 12 05:32:29 ip-172-31-10-177 dnsmasq[3016]: reading /etc/resolv.conf
May 12 05:32:29 ip-172-31-10-177 dnsmasq[3016]: using nameserver 127.0.0.53#53
May 12 05:32:30 ip-172-31-10-177 dnsmasq[3016]: reading /etc/resolv.conf
May 12 05:32:30 ip-172-31-10-177 dnsmasq[3016]: using nameserver 127.0.0.53#53
May 12 05:32:30 ip-172-31-10-177 dnsmasq[3016]: reading /etc/resolv.conf
May 12 05:32:30 ip-172-31-10-177 dnsmasq[3016]: using nameserver 127.0.0.53#53
May 12 05:35:38 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 12 05:35:38 ip-172-31-10-177 dnsmasq[3016]: exiting on receipt of SIGTERM
May 12 05:35:38 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 12 05:35:38 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 12 05:35:38 ip-172-31-10-177 dnsmasq[3209]: dnsmasq: syntax check OK.
May 12 05:35:38 ip-172-31-10-177 dnsmasq[3228]: started, version 2.79 cachesize 150
May 12 05:35:38 ip-172-31-10-177 dnsmasq[3228]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 12 05:35:38 ip-172-31-10-177 dnsmasq-dhcp[3228]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 12 05:35:38 ip-172-31-10-177 dnsmasq-dhcp[3228]: DHCP, sockets bound exclusively to interface tap_soft
May 12 05:35:38 ip-172-31-10-177 dnsmasq[3228]: reading /etc/resolv.conf
May 12 05:35:38 ip-172-31-10-177 dnsmasq[3228]: using nameserver 127.0.0.53#53
May 12 05:35:38 ip-172-31-10-177 dnsmasq[3228]: read /etc/hosts - 7 addresses
May 12 05:35:38 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 12 05:35:39 ip-172-31-10-177 dnsmasq[3228]: reading /etc/resolv.conf
May 12 05:35:39 ip-172-31-10-177 dnsmasq[3228]: using nameserver 127.0.0.53#53
May 12 05:35:39 ip-172-31-10-177 dnsmasq[3228]: reading /etc/resolv.conf
May 12 05:35:39 ip-172-31-10-177 dnsmasq[3228]: using nameserver 127.0.0.53#53
May 12 05:35:43 ip-172-31-10-177 dnsmasq[3228]: reading /etc/resolv.conf
May 12 05:35:43 ip-172-31-10-177 dnsmasq[3228]: using nameserver 127.0.0.53#53
May 12 05:35:43 ip-172-31-10-177 dnsmasq[3228]: reading /etc/resolv.conf
May 12 05:35:43 ip-172-31-10-177 dnsmasq[3228]: using nameserver 127.0.0.53#53
May 12 05:35:43 ip-172-31-10-177 dnsmasq[3228]: reading /etc/resolv.conf
May 12 05:35:43 ip-172-31-10-177 dnsmasq[3228]: using nameserver 127.0.0.53#53
May 12 05:35:44 ip-172-31-10-177 dnsmasq[3228]: reading /etc/resolv.conf
May 12 05:35:44 ip-172-31-10-177 dnsmasq[3228]: using nameserver 127.0.0.53#53
May 12 05:35:44 ip-172-31-10-177 dnsmasq[3228]: reading /etc/resolv.conf
May 12 05:35:44 ip-172-31-10-177 dnsmasq[3228]: using nameserver 127.0.0.53#53
May 12 05:39:31 ip-172-31-10-177 dnsmasq[3228]: reading /etc/resolv.conf
May 12 05:39:31 ip-172-31-10-177 dnsmasq[3228]: using nameserver 127.0.0.53#53
May 12 06:00:26 ip-172-31-10-177 systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 12 06:00:26 ip-172-31-10-177 dnsmasq[3228]: exiting on receipt of SIGTERM
May 12 06:00:26 ip-172-31-10-177 systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 12 06:00:26 ip-172-31-10-177 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 12 06:00:26 ip-172-31-10-177 dnsmasq[3608]: dnsmasq: syntax check OK.
May 12 06:00:26 ip-172-31-10-177 dnsmasq[3618]: started, version 2.79 cachesize 150
May 12 06:00:26 ip-172-31-10-177 dnsmasq[3618]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
May 12 06:00:26 ip-172-31-10-177 dnsmasq-dhcp[3618]: DHCP, IP range 10.42.10.10 -- 10.42.10.100, lease time 12h
May 12 06:00:26 ip-172-31-10-177 dnsmasq-dhcp[3618]: DHCP, sockets bound exclusively to interface tap_soft
May 12 06:00:26 ip-172-31-10-177 dnsmasq[3618]: reading /etc/resolv.conf
May 12 06:00:26 ip-172-31-10-177 dnsmasq[3618]: using nameserver 127.0.0.53#53
May 12 06:00:26 ip-172-31-10-177 dnsmasq[3618]: read /etc/hosts - 7 addresses
May 12 06:00:26 ip-172-31-10-177 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 12 06:00:28 ip-172-31-10-177 dnsmasq[3618]: reading /etc/resolv.conf
May 12 06:00:28 ip-172-31-10-177 dnsmasq[3618]: using nameserver 127.0.0.53#53
May 12 06:00:28 ip-172-31-10-177 dnsmasq[3618]: reading /etc/resolv.conf
May 12 06:00:28 ip-172-31-10-177 dnsmasq[3618]: using nameserver 127.0.0.53#53
May 12 06:00:31 ip-172-31-10-177 dnsmasq[3618]: reading /etc/resolv.conf
May 12 06:00:31 ip-172-31-10-177 dnsmasq[3618]: using nameserver 127.0.0.53#53
May 12 06:00:31 ip-172-31-10-177 dnsmasq[3618]: reading /etc/resolv.conf
May 12 06:00:31 ip-172-31-10-177 dnsmasq[3618]: using nameserver 127.0.0.53#53
May 12 06:00:31 ip-172-31-10-177 dnsmasq[3618]: reading /etc/resolv.conf
May 12 06:00:31 ip-172-31-10-177 dnsmasq[3618]: using nameserver 127.0.0.53#53
May 12 06:00:32 ip-172-31-10-177 dnsmasq[3618]: reading /etc/resolv.conf
May 12 06:00:32 ip-172-31-10-177 dnsmasq[3618]: using nameserver 127.0.0.53#53
May 12 06:00:32 ip-172-31-10-177 dnsmasq[3618]: reading /etc/resolv.conf
May 12 06:00:32 ip-172-31-10-177 dnsmasq[3618]: using nameserver 127.0.0.53#53
May 12 06:09:31 ip-172-31-10-177 dnsmasq[3618]: reading /etc/resolv.conf
May 12 06:09:31 ip-172-31-10-177 dnsmasq[3618]: using nameserver 127.0.0.53#53

I noticed that in some instances tap_soft had no defined address.

177 dnsmasq-dhcp[2909]: DHCP packet received on tap_soft which has no address

Then I also noted that dnsmasq failed to start completely in this case:

May 11 18:44:50 ip-172-31-10-177 dnsmasq[1107]: dnsmasq: unknown interface tap_soft
May 11 18:44:50 ip-172-31-10-177 dnsmasq[1107]: unknown interface tap_soft
May 11 18:44:50 ip-172-31-10-177 dnsmasq[1107]: FAILED to start up

So you have already tried a new fresh install since you opened this thread?

yes i tried fresh install with your new script, Install SoftEther VPN Server [Ubuntu].
can you explain what does it means - DHCP packet received on tap_soft which has no address

This usually means that the SoftEther VPN server didn’t start and bind to the tap_soft adapter. That’s what the init script in /etc/init.d/ is supposed to do. You mentioned earlier that you did edit the init script to include the necessary changes to run SoftEther in this bridged mode, correct?

Yes i did necessary changes to run SoftEther in this bridged mode

Hmm. I’m stumped on this one for now. I’ll follow up with you tomorrow and see if we can’t get this figured out. (And by tomorrow I really mean later today, it’s currently 2:03AM for me.)

1 Like

Alright, so what can you tell me about what steps you’ve taken to try and resolve this issue?

Have you:

  • verified that dnsmasq is configured properly in /etc/dnsmasq.conf?
  • verified that tap_soft gets an IP Address after SE VPN is started? (ifconfig tap_soft)
  • checked the logs of dnsmasq for any logged errors?
  • added an iptables rule that enables SNAT to your public IP address?

Also, you do need to use the SoftEther VPN Server Manager to add and set up the local bridge. If you don’t do this, the adapter will never be created and the DHCP server won’t hand out IP Addresses.

@ShakyShaker
The forum was reverted to a previous state and unfortunately your reply was lost.