<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: openvpn routing in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/openvpn-routing/m-p/4775486#M44137</link>
    <description>eth0      Link encap:Ethernet  HWaddr 00:0x:xx:xx:xx:xx  &lt;BR /&gt;          inet addr:10.10.0.4  Bcast:10.10.255.255  Mask:255.255.0.0&lt;BR /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          RX packets:213683 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:142459 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:1000 &lt;BR /&gt;          RX bytes:243448843 (232.1 MiB)  TX bytes:58282203 (55.5 MiB)&lt;BR /&gt;&lt;BR /&gt;lo        Link encap:Local Loopback  &lt;BR /&gt;          inet addr:127.0.0.1  Mask:255.0.0.0&lt;BR /&gt;          UP LOOPBACK RUNNING  MTU:16436  Metric:1&lt;BR /&gt;          RX packets:10007 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:10007 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:0 &lt;BR /&gt;          RX bytes:1157484 (1.1 MiB)  TX bytes:1157484 (1.1 MiB)&lt;BR /&gt;&lt;BR /&gt;tun1      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  &lt;BR /&gt;          inet addr:10.25.25.1  P-t-P:10.25.25.1  Mask:255.255.255.0&lt;BR /&gt;          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          RX packets:1936 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:1972 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:100 &lt;BR /&gt;          RX bytes:206539 (201.6 KiB)  TX bytes:1373185 (1.3 MiB)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;openvpn.conf&lt;BR /&gt;port 1725&lt;BR /&gt;proto udp&lt;BR /&gt;dev tun1&lt;BR /&gt;script-security 3 system&lt;BR /&gt;ca /etc/openvpn/vpn/ca.crt&lt;BR /&gt;cert /etc/openvpn/vpn/vpn.crt&lt;BR /&gt;key /etc/openvpn/vpn/vpn.key&lt;BR /&gt;dh /etc/openvpn/vpn001bri/dh-vpn.pem&lt;BR /&gt;server 10.25.25.0 255.255.255.0&lt;BR /&gt;up "/etc/openvpn/vpn/serverup.sh vpn"&lt;BR /&gt;down "/etc/openvpn/vpn/serverdown.sh vpn"&lt;BR /&gt;down-pre&lt;BR /&gt;ifconfig-pool-persist /etc/openvpn/vpn/ipp.txt&lt;BR /&gt;topology subnet&lt;BR /&gt;keepalive 10 120&lt;BR /&gt;tls-server&lt;BR /&gt;tls-auth /etc/openvpn/vpn/ta.key 0&lt;BR /&gt;cipher AES-128-CBC&lt;BR /&gt;comp-lzo&lt;BR /&gt;max-clients 30&lt;BR /&gt;user root&lt;BR /&gt;group root&lt;BR /&gt;persist-key&lt;BR /&gt;persist-tun&lt;BR /&gt;status-version 2&lt;BR /&gt;status /etc/openvpn/logs/openvpn-status.log&lt;BR /&gt;log /etc/openvpn/logs/openvpn-vpn.log&lt;BR /&gt;crl-verify /etc/openvpn/vpn/crl.pem&lt;BR /&gt;verb 3&lt;BR /&gt;mute 20&lt;BR /&gt;management 127.0.0.1 10002&lt;BR /&gt;push "route 10.10.0.0 255.255.255.0"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@vpn001bri ~]# route&lt;BR /&gt;Kernel IP routing table&lt;BR /&gt;Destination     Gateway         Genmask         Flags Metric Ref    Use Iface&lt;BR /&gt;10.25.25.0      *               255.255.255.0   U     0      0        0 tun1&lt;BR /&gt;10.10.0.0       *               255.255.0.0     U     0      0        0 eth0&lt;BR /&gt;169.254.0.0     *               255.255.0.0     U     0      0        0 eth0&lt;BR /&gt;default         10.10.0.1       0.0.0.0         UG    0      0        0 eth0&lt;BR /&gt;</description>
    <pubDate>Sat, 09 Apr 2011 16:02:48 GMT</pubDate>
    <dc:creator>Piotr Kirklewski</dc:creator>
    <dc:date>2011-04-09T16:02:48Z</dc:date>
    <item>
      <title>openvpn routing</title>
      <link>https://community.hpe.com/t5/operating-system-linux/openvpn-routing/m-p/4775484#M44135</link>
      <description>Hi there&lt;BR /&gt;I have the openvpn server installed end running.&lt;BR /&gt;Clients are connecting fine.&lt;BR /&gt;&lt;BR /&gt;I did the following to the firewall and forwarding:&lt;BR /&gt;&lt;BR /&gt;echo "1" &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;BR /&gt;iptables -A POSTROUTING -s 10.10.0.0/16 -j MASQUERADE -t nat&lt;BR /&gt;iptables -A FORWARD -s 10.10.0.0/16 -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;And I can ping only the 10.10.0.4 server which is the openvpn serwer.&lt;BR /&gt;&lt;BR /&gt;Can anyone please tell me why would that be ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Apr 2011 19:47:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/openvpn-routing/m-p/4775484#M44135</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2011-04-08T19:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: openvpn routing</title>
      <link>https://community.hpe.com/t5/operating-system-linux/openvpn-routing/m-p/4775485#M44136</link>
      <description>Peter,&lt;BR /&gt;There is a lot more to this, there is actual openvpn config as well as iptables (since you are using it) config to make this work.&lt;BR /&gt;&lt;BR /&gt;Provide an overview of your topology including subnets to make this easy to answer as well as openvpn versions.&lt;BR /&gt;&lt;BR /&gt;But basically, if you are not interested in making site-to-site connections but instead want only to allow the clients connectivity then if you are using tun devices the traffic appears on the openvpn server from the point-to-point tunnel ip that the openvpn process sets up. So you must provide routing (most easily accomplished by a server side push statement) to expose the remote server side subnet over the p-t-p tunnel to the client, and allow this via iptables and server side routing as well possibly.&lt;BR /&gt;&lt;BR /&gt;As you are masq'ing traffic, I need to know more details before I can really comment specifically.</description>
      <pubDate>Sat, 09 Apr 2011 01:15:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/openvpn-routing/m-p/4775485#M44136</guid>
      <dc:creator>Joseph L. Casale</dc:creator>
      <dc:date>2011-04-09T01:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: openvpn routing</title>
      <link>https://community.hpe.com/t5/operating-system-linux/openvpn-routing/m-p/4775486#M44137</link>
      <description>eth0      Link encap:Ethernet  HWaddr 00:0x:xx:xx:xx:xx  &lt;BR /&gt;          inet addr:10.10.0.4  Bcast:10.10.255.255  Mask:255.255.0.0&lt;BR /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          RX packets:213683 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:142459 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:1000 &lt;BR /&gt;          RX bytes:243448843 (232.1 MiB)  TX bytes:58282203 (55.5 MiB)&lt;BR /&gt;&lt;BR /&gt;lo        Link encap:Local Loopback  &lt;BR /&gt;          inet addr:127.0.0.1  Mask:255.0.0.0&lt;BR /&gt;          UP LOOPBACK RUNNING  MTU:16436  Metric:1&lt;BR /&gt;          RX packets:10007 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:10007 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:0 &lt;BR /&gt;          RX bytes:1157484 (1.1 MiB)  TX bytes:1157484 (1.1 MiB)&lt;BR /&gt;&lt;BR /&gt;tun1      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  &lt;BR /&gt;          inet addr:10.25.25.1  P-t-P:10.25.25.1  Mask:255.255.255.0&lt;BR /&gt;          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          RX packets:1936 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:1972 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:100 &lt;BR /&gt;          RX bytes:206539 (201.6 KiB)  TX bytes:1373185 (1.3 MiB)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;openvpn.conf&lt;BR /&gt;port 1725&lt;BR /&gt;proto udp&lt;BR /&gt;dev tun1&lt;BR /&gt;script-security 3 system&lt;BR /&gt;ca /etc/openvpn/vpn/ca.crt&lt;BR /&gt;cert /etc/openvpn/vpn/vpn.crt&lt;BR /&gt;key /etc/openvpn/vpn/vpn.key&lt;BR /&gt;dh /etc/openvpn/vpn001bri/dh-vpn.pem&lt;BR /&gt;server 10.25.25.0 255.255.255.0&lt;BR /&gt;up "/etc/openvpn/vpn/serverup.sh vpn"&lt;BR /&gt;down "/etc/openvpn/vpn/serverdown.sh vpn"&lt;BR /&gt;down-pre&lt;BR /&gt;ifconfig-pool-persist /etc/openvpn/vpn/ipp.txt&lt;BR /&gt;topology subnet&lt;BR /&gt;keepalive 10 120&lt;BR /&gt;tls-server&lt;BR /&gt;tls-auth /etc/openvpn/vpn/ta.key 0&lt;BR /&gt;cipher AES-128-CBC&lt;BR /&gt;comp-lzo&lt;BR /&gt;max-clients 30&lt;BR /&gt;user root&lt;BR /&gt;group root&lt;BR /&gt;persist-key&lt;BR /&gt;persist-tun&lt;BR /&gt;status-version 2&lt;BR /&gt;status /etc/openvpn/logs/openvpn-status.log&lt;BR /&gt;log /etc/openvpn/logs/openvpn-vpn.log&lt;BR /&gt;crl-verify /etc/openvpn/vpn/crl.pem&lt;BR /&gt;verb 3&lt;BR /&gt;mute 20&lt;BR /&gt;management 127.0.0.1 10002&lt;BR /&gt;push "route 10.10.0.0 255.255.255.0"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@vpn001bri ~]# route&lt;BR /&gt;Kernel IP routing table&lt;BR /&gt;Destination     Gateway         Genmask         Flags Metric Ref    Use Iface&lt;BR /&gt;10.25.25.0      *               255.255.255.0   U     0      0        0 tun1&lt;BR /&gt;10.10.0.0       *               255.255.0.0     U     0      0        0 eth0&lt;BR /&gt;169.254.0.0     *               255.255.0.0     U     0      0        0 eth0&lt;BR /&gt;default         10.10.0.1       0.0.0.0         UG    0      0        0 eth0&lt;BR /&gt;</description>
      <pubDate>Sat, 09 Apr 2011 16:02:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/openvpn-routing/m-p/4775486#M44137</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2011-04-09T16:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: openvpn routing</title>
      <link>https://community.hpe.com/t5/operating-system-linux/openvpn-routing/m-p/4775487#M44138</link>
      <description>Topology:&lt;BR /&gt;&lt;BR /&gt;vpn_client&lt;BR /&gt;|&lt;BR /&gt;|&lt;BR /&gt;THE INTERNET&lt;BR /&gt;|&lt;BR /&gt;|&lt;BR /&gt;Linksys WRT54GL(DD-WRT Firmware)&lt;BR /&gt;|&lt;BR /&gt;|&lt;BR /&gt;OPENVPN(10.10.0.4) + OTHERSERVER(10.10.0.5)&lt;BR /&gt;&lt;BR /&gt;The vpn_client can ping 10.10.0.4 but not 10.10.0.5</description>
      <pubDate>Sat, 09 Apr 2011 16:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/openvpn-routing/m-p/4775487#M44138</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2011-04-09T16:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: openvpn routing</title>
      <link>https://community.hpe.com/t5/operating-system-linux/openvpn-routing/m-p/4775488#M44139</link>
      <description>Peter,&lt;BR /&gt;Here is what i see:&lt;BR /&gt;I assume the openvpn version on the server is recent from some of the options, but you never stated, also don't know what the client version is. I don't know what's in your scripts either.&lt;BR /&gt;&lt;BR /&gt;1. You are using Tun devices and in routing mode, so no need to masq traffic, proper routes and iptables will do it!&lt;BR /&gt;&lt;BR /&gt;2. You're internal network on the vpn server is accessible via eth0 10.10.0.4/16, yet your vpn server config pushes a /24 route. Not good, change your server conf to:&lt;BR /&gt;push "route 10.10.0.0 255.255.0.0"&lt;BR /&gt;&lt;BR /&gt;3. Route table on vpn server looks good. Client is obviously wrong as per server conf.&lt;BR /&gt;&lt;BR /&gt;4. What is left is the potential for any iptables changes on the server, correct the push/route and send a redacted copy of the iptabels rules.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Sat, 09 Apr 2011 16:36:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/openvpn-routing/m-p/4775488#M44139</guid>
      <dc:creator>Joseph L. Casale</dc:creator>
      <dc:date>2011-04-09T16:36:15Z</dc:date>
    </item>
  </channel>
</rss>

