<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jerryzak</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jerryzak"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Jerryzak"/>
	<updated>2026-04-04T07:59:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=OpenVPN_VPN_Bridging&amp;diff=11161</id>
		<title>OpenVPN VPN Bridging</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=OpenVPN_VPN_Bridging&amp;diff=11161"/>
		<updated>2010-04-01T21:53:01Z</updated>

		<summary type="html">&lt;p&gt;Jerryzak: Explanation for OpenVPN client + change in static IP line&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== VPN Bridging ==&lt;br /&gt;
&lt;br /&gt;
Here's the procedure you need to follow in order to have your VPN clients get IP addresses in the same subnet as your HDA.&lt;br /&gt;
&lt;br /&gt;
For example, if you HDA's IP is 192.168.0.2, by default, connecting to it using an OpenVPN client will give your client computer an IP address like 10.8.0.x.&lt;br /&gt;
The following procedure will change this so that your client will receive an IP address like 192.168.0.x.&lt;br /&gt;
&lt;br /&gt;
* sudo yum -y install bridge-utils&lt;br /&gt;
&lt;br /&gt;
* sudo nano /etc/openvpn/openvpn-startup&lt;br /&gt;
Add this at the end of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
#################################&lt;br /&gt;
# Set up Ethernet bridge on Linux&lt;br /&gt;
# Requires: bridge-utils&lt;br /&gt;
#################################&lt;br /&gt;
&lt;br /&gt;
br=&amp;quot;br0&amp;quot;&lt;br /&gt;
tap=&amp;quot;tap0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
eth=&amp;quot;eth0&amp;quot;&lt;br /&gt;
eth_ip=`ifconfig | grep -A 1 eth0 | tail -1 | awk -F':' '{printf $2}' | awk '{print $1}'`&lt;br /&gt;
eth_netmask=`ifconfig | grep -A 1 eth0 | tail -1 | awk -F':' '{printf $4}' | awk '{print $1}'`&lt;br /&gt;
eth_broadcast=`ifconfig | grep -A 1 eth0 | tail -1 | awk -F':' '{printf $3}' | awk '{print $1}'`&lt;br /&gt;
&lt;br /&gt;
openvpn --mktun --dev $tap&lt;br /&gt;
&lt;br /&gt;
brctl addbr $br&lt;br /&gt;
brctl addif $br $eth&lt;br /&gt;
brctl addif $br $tap&lt;br /&gt;
&lt;br /&gt;
ifconfig $tap 0.0.0.0 promisc up&lt;br /&gt;
ifconfig $br $eth_ip netmask $eth_netmask broadcast $eth_broadcast&lt;br /&gt;
ifconfig $eth 0.0.0.0 promisc up&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* sudo nano /etc/openvpn/openvpn-shutdown&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
####################################&lt;br /&gt;
# Tear Down Ethernet bridge on Linux&lt;br /&gt;
####################################&lt;br /&gt;
&lt;br /&gt;
br=&amp;quot;br0&amp;quot;&lt;br /&gt;
tap=&amp;quot;tap0&amp;quot;&lt;br /&gt;
eth=&amp;quot;eth0&amp;quot;&lt;br /&gt;
eth_ip=`ifconfig | grep -A 1 br0 | tail -1 | awk -F':' '{printf $2}' | awk '{print $1}'`&lt;br /&gt;
eth_netmask=`ifconfig | grep -A 1 br0 | tail -1 | awk -F':' '{printf $4}' | awk '{print $1}'`&lt;br /&gt;
eth_broadcast=`ifconfig | grep -A 1 br0 | tail -1 | awk -F':' '{printf $3}' | awk '{print $1}'`&lt;br /&gt;
&lt;br /&gt;
ifconfig $br down&lt;br /&gt;
brctl delbr $br&lt;br /&gt;
&lt;br /&gt;
openvpn --rmtun --dev $tap&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$eth_ip&amp;quot; != &amp;quot;&amp;quot; ]; then&lt;br /&gt;
    ifconfig $eth $eth_ip netmask $eth_netmask broadcast $eth_broadcast&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* sudo chmod +x /etc/openvpn/openvpn-shutdown&lt;br /&gt;
&lt;br /&gt;
* sudo nano /etc/openvpn/amahi.conf&lt;br /&gt;
Remove the line that contains: ''dev tun''&lt;br /&gt;
and replace it with this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
mode server&lt;br /&gt;
tls-server&lt;br /&gt;
dev tap0&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
And remove (or comment out) the lines that start with ''server'' and ''ifconfig-pool-persist''.&lt;br /&gt;
&lt;br /&gt;
* Repeat the last step with /etc/openvpn/amahi-dup-cn.conf&lt;br /&gt;
&lt;br /&gt;
* sudo iptables -A INPUT -i tap0 -j ACCEPT&lt;br /&gt;
* sudo iptables -A INPUT -i br0 -j ACCEPT&lt;br /&gt;
* sudo iptables -A FORWARD -i br0 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
* sudo service openvpn restart&lt;br /&gt;
&lt;br /&gt;
* 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:&lt;br /&gt;
&lt;br /&gt;
       ifconfig 192.168.1.x 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
Replace &amp;quot;x&amp;quot; in the IP address above with address you want your client to use.&lt;br /&gt;
&lt;br /&gt;
[[Category: VPN]]&lt;/div&gt;</summary>
		<author><name>Jerryzak</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Turning_off_DHCP&amp;diff=10663</id>
		<title>Turning off DHCP</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Turning_off_DHCP&amp;diff=10663"/>
		<updated>2010-03-29T01:08:51Z</updated>

		<summary type="html">&lt;p&gt;Jerryzak: Changes to Reflect UI&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Note that a few of the benefits of your HDA will not work if you disable DHCP on your server.'''&lt;br /&gt;
&lt;br /&gt;
The DHCP server in the HDA can be stopped by doing this:&lt;br /&gt;
&lt;br /&gt;
* First turn on Advanced Settings, under Setup --&amp;gt; Settings&lt;br /&gt;
* Then go to the Setup --&amp;gt; Apps --&amp;gt; Servers&lt;br /&gt;
* Once there, find the DHCP Server and unselect both &amp;quot;Watchdog. DHCP Server is being monitored 24x7&amp;quot; and &amp;quot;Start at Boot time&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here are the [http://www.amahi.org/faq#is-dhcp-server-required DHCP tradeoffs] if you would like to only use some of the functionality.&lt;br /&gt;
&lt;br /&gt;
In short, a few of the nicer features of your HDA will not be available. You can still point your machines to the DNS server in the HDA and get some of the benefits, like nice URLs for your HDA-provided services. This is not a supported configuration for things like [[Netboot]].&lt;/div&gt;</summary>
		<author><name>Jerryzak</name></author>
		
	</entry>
</feed>