Changes

From Amahi Wiki
Jump to: navigation, search
9 bytes removed ,  02:21, 20 February 2019
no edit summary
nano /etc/openvpn/openvpn-startup
Add this at the end of the file:
{{Text|Text=<pre>
<nowiki>#################################</nowiki>
<nowiki># Set up Ethernet bridge on Linux</nowiki>
ifconfig $tap 0.0.0.0 promisc up
ifconfig $br $eth_ip netmask $eth_netmask broadcast $eth_broadcast
ifconfig $eth 0.0.0.0 promisc up}}</pre>
nano /etc/openvpn/openvpn-shutdown
Add this text to the file:
{{Text|Text=<pre>#!/bin/sh
<nowiki>####################################</nowiki>
if [ "$eth_ip" !<nowiki>=</nowiki> "" ]; then
ifconfig $eth $eth_ip netmask $eth_netmask broadcast $eth_broadcast
fi}}</pre>
Remove the line that contains: ''dev tun''
and replace it with this:
{{Text|Text=<pre>mode server
tls-server
dev tap0}}
Replace "x" in the IP address above with address you want your client to use.
[[Category: VPN]]</pre>
12,424

edits