Changes

From Amahi Wiki
Jump to: navigation, search
246 bytes removed ,  20:55, 31 January 2010
no edit summary
* sudo yum install bridge-utils
* sudo nano /etc/openvpn/bridgeopenvpn-startstartupAdd this at the end of the file:
<pre><nowiki>
#!/bin/bash
 
#################################
# Set up Ethernet bridge on Linux
</nowiki></pre>
* sudo nano /etc/openvpn/bridgeopenvpn-stopshutdown
<pre><nowiki>
#!/bin/bashsh
####################################
brctl delbr $br
for t in $tap; do openvpn --rmtun --dev $tdonetap
if [ "$eth_ip" != "" ]; then
ifconfig $eth $eth_ip netmask $eth_netmask broadcast $eth_broadcast
fi
</nowiki></pre>
 
* sudo chmod +x /etc/openvpn/bridge-start; sudo chmod +x /etc/openvpn/bridge-stop
 
* sudo nano /etc/openvpn/openvpn-startup
Add one line at the end of the file:
<pre><nowiki>
/etc/openvpn/bridge-start
</nowiki></pre>
 
* sudo nano /etc/openvpn/openvpn-shutdown
<pre><nowiki>
/etc/openvpn/bridge-stop
</nowiki></pre>
ifconfig 192.168.1.2 255.255.255.0
</nowiki></pre>
Replace 192.168.1.2 with the IP address you want your client to use.
[[Category: VPN]]