Changes

From Amahi Wiki
Jump to: navigation, search
11 bytes removed ,  02:22, 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}}
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