Problem with Local Bridge (Debian 7)

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
milanolarry
Posts: 10
Joined: Thu Jul 10, 2014 5:23 am

Problem with Local Bridge (Debian 7)

Post by milanolarry » Thu May 28, 2015 11:11 am

I set up a server in my Debian 7; it runs smoothly on SecureNAT. Last week, I switched it to local bridge; sometimes, not always, the following error message appears after reboot:

SIOCSIFADDR: No Such Device
tap_XXX: ERROR while getting interface flags : no such device

Anyone has the same problem? It really puzzles me. If there is something wrong with the setting, the error message should appear every time after reboot, but it does not. Sometimes the vpn server works without any problems.
Last edited by milanolarry on Fri May 29, 2015 1:18 am, edited 1 time in total.

Petrol
Posts: 44
Joined: Wed May 06, 2015 11:23 pm

Re: Problem with Local Bridge (Debian 7)

Post by Petrol » Thu May 28, 2015 10:15 pm

Do you have a script in /etc/init.d/ that launches softether vpn?

if yes, you should have a line that sets your local bridge ip address (ifconfig tap_something <anipaddress>) just after you start your vpn server. :

1. Start vpn server
2. Set local bridge ip

I think that the error message you sometime have is because your script don't wait enough time after the vpn starts to configure the local bridge ip address. The vpn server takes time to actually create the local bridge.

So you should modify your script to do something like this :

1. Start the vpn server
2. Wait for a moment ("sleep 1" works great for me)
3. Assign an IP to the local bridge.

milanolarry
Posts: 10
Joined: Thu Jul 10, 2014 5:23 am

Re: Problem with Local Bridge (Debian 7)

Post by milanolarry » Fri May 29, 2015 1:16 am

Thanks. Let me give it a try. I'll change it to sleep 3.
Last edited by milanolarry on Fri May 29, 2015 2:21 am, edited 1 time in total.

milanolarry
Posts: 10
Joined: Thu Jul 10, 2014 5:23 am

Re: Problem with Local Bridge (Debian 7)

Post by milanolarry » Fri May 29, 2015 2:18 am

Petrol wrote:
> Do you have a script in /etc/init.d/ that launches softether vpn?
>
> if yes, you should have a line that sets your local bridge ip address (ifconfig
> tap_something <anipaddress>) just after you start your vpn server. :
>
> 1. Start vpn server
> 2. Set local bridge ip
>
> I think that the error message you sometime have is because your script don't wait
> enough time after the vpn starts to configure the local bridge ip address. The vpn
> server takes time to actually create the local bridge.
>
> So you should modify your script to do something like this :
>
> 1. Start the vpn server
> 2. Wait for a moment ("sleep 1" works great for me)
> 3. Assign an IP to the local bridge.



It seems to work. However, another problem arises. The dnsmasq does not assign IP correctly unless I open my firewall,
ie, removing -A INPUT -j DROP .

When I used SecureNAT, I only needed to open port 443 and everything worked fine. Do I need to do some forwarding in the firewall in order to making the dnsmasq work correctly? Thanks in advance.

Petrol
Posts: 44
Joined: Wed May 06, 2015 11:23 pm

Re: Problem with Local Bridge (Debian 7)

Post by Petrol » Fri May 29, 2015 6:13 am

Yes you should open Port UDP 67 on the server to allow dhcp

milanolarry
Posts: 10
Joined: Thu Jul 10, 2014 5:23 am

Re: Problem with Local Bridge (Debian 7)

Post by milanolarry » Fri May 29, 2015 7:18 am

Allow udp 67 INPUT or FORWARD ? I am a newbie in Linux

hatimux
Posts: 20
Joined: Fri May 15, 2015 10:20 am

Re: Problem with Local Bridge (Debian 7)

Post by hatimux » Fri May 29, 2015 7:57 am

DHCP requests will arrive in the INPUT chain of the server.

Post Reply