How to assign static IP on tap device automatically when each restart of the softether vpn service?
Currently, I need to execute ip command manually after each restart of the softether vpn server service.
Static IP on tap device
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: Static IP on tap device
Do your OS have any tool like ifupdown?
-
- Posts: 551
- Joined: Wed Jul 24, 2013 12:09 pm
Re: Static IP on tap device
I think so but not sure. It is a ubuntu image coming from amazon aws.
-
- Posts: 551
- Joined: Wed Jul 24, 2013 12:09 pm
Re: Static IP on tap device
Currently, in my startup script, the ip command is executed 4 seconds after the vpn server is started.
In the manual, bridge mode is suggested instead of using NAT. However, due to technical limitations, NAT is needed, is it a better idea to do NAT with tap device and iptables then using SecureNAT? I still use the SecureNAT function for DHCP and DNS forwarding.
In the manual, bridge mode is suggested instead of using NAT. However, due to technical limitations, NAT is needed, is it a better idea to do NAT with tap device and iptables then using SecureNAT? I still use the SecureNAT function for DHCP and DNS forwarding.
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: Static IP on tap device
It depend on environment and your intent.
-
- Posts: 20
- Joined: Fri May 15, 2015 10:20 am
Re: Static IP on tap device
You can simply configure your tap interface to use dhcp.
Since you are using uybuntu, modify the network config file /etc/network/interfaces:
!!!!
auto tap
iface tap inet dhcp
!!!!
Since you are using uybuntu, modify the network config file /etc/network/interfaces:
!!!!
auto tap
iface tap inet dhcp
!!!!