Changes

From Amahi Wiki
Jump to: navigation, search
37 bytes removed ,  02:22, 20 February 2019
no edit summary
These steps need to be done as '''root''' user:
{{Code| yum -y install bridge-utils 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>
{{Code| 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>
{{Code| chmod +x /etc/openvpn/openvpn-shutdown nano /etc/openvpn/amahi.conf}}
Remove the line that contains: ''dev tun''
and replace it with this:
{{Text|Text=<pre>mode server
tls-server
dev tap0}}
And remove (or comment out) the lines that start with ''server'' and ''ifconfig-pool-persist''.
{{Code| iptables -A INPUT -i tap0 -j ACCEPT iptables -A INPUT -i br0 -j ACCEPT iptables -A FORWARD -i br0 -j ACCEPT service openvpn restart}}</pre>
* In your OpenVPN client (such as Amahi HDAConnect for Windows users) configuration, change ''dev tun'' with ''dev tap''. You'll also need to add a line that will make the client IP static:
{{Text|Text=<pre>ifconfig 192.168.0.x 255.255.255.0}}</pre>
Replace "x" in the IP address above with address you want your client to use.
12,424

edits