<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem configuring OpenVPN connection as a Gateway]]></title><description><![CDATA[<p dir="auto">I successfully setup an OpenVPN client on pFsense 2.0 RC1. It connect to an OpenVPN server on my VPS.<br />
Here's the detail,</p>
<p dir="auto">Interface<br />
LAN (pFsense) = 192.168.1.1<br />
WAN1 = 192.168.3.1 (Default Gateway)<br />
WAN2        = 192.168.2.1 (not using)<br />
VPN        = 10.8.0.50 (auto assign by OpenVPN Server)</p>
<p dir="auto">OpenVPN Client was connecting thru WAN1 (192.168.3.1) to establish VPN connection.<br />
OpenVPN Server at 10.8.0.1 (10.8.0.0/24), configure with forwaring all client traffic to VPN (push "redirect-gateway def1 bypass-dhcp")</p>
<p dir="auto">The problem was I can't PASS any traffic to VPN using the Firewall. Like example I PASS all traffic from a LAN PC to Interface VPN under "Gateway". That PC will not able to access Internet at all. I am sure the OpenVPN connnection was working as pFsense box can PING 10.8.0.1 (OpenVPN server address) and I can use the VPN Interface to PING www.google.com or any other webpage. And traceroute also works and show that it's going thru VPN server. I can even use it to download packages within pFsense box as WAN1 was automatic route to OpenVPN server Gateway (184.82.106.57). But all PC from LAN will not be able to access Internet.</p>
<p dir="auto">While the OpenVPN connection was establish I can still use WAN1 (192.168.3.1) for LAN PC to access Internet by PASSing all traffic to WAN1GW. If I use default (*) all PC will not be able to access Internet as I think that's because OpenVPN route it Server Gateway to 192.168.3.1 (WAN1).</p>
<p dir="auto">OpenVPN log,<br />
Jul 31 00:19:10 openvpn[54195]: SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)<br />
Jul 31 00:19:11 openvpn[54195]: PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 10.8.0.1,dhcp-option DNS 208.67.222.222,route 10.8.0.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.50 10.8.0.49'<br />
Jul 31 00:19:11 openvpn[54195]: OPTIONS IMPORT: timers and/or timeouts modified<br />
Jul 31 00:19:11 openvpn[54195]: OPTIONS IMPORT: –ifconfig/up options modified<br />
Jul 31 00:19:11 openvpn[54195]: OPTIONS IMPORT: route options modified<br />
Jul 31 00:19:11 openvpn[54195]: OPTIONS IMPORT: –ip-win32 and/or --dhcp-option options modified<br />
Jul 31 00:19:11 openvpn[54195]: ROUTE default_gateway=192.168.3.1<br />
Jul 31 00:19:11 openvpn[54195]: TUN/TAP device /dev/tun1 opened<br />
Jul 31 00:19:11 openvpn[54195]: do_ifconfig, tt-&gt;ipv6=0<br />
Jul 31 00:19:11 openvpn[54195]: /sbin/ifconfig ovpnc1 10.8.0.50 10.8.0.49 mtu 1500 netmask 255.255.255.255 up<br />
Jul 31 00:19:11 openvpn[54195]: /usr/local/sbin/ovpn-linkup ovpnc1 1500 1542 10.8.0.50 10.8.0.49 init<br />
Jul 31 00:19:11 openvpn[54195]: /sbin/route add -net 184.82.106.57 192.168.3.1 255.255.255.255<br />
Jul 31 00:19:11 openvpn[54195]: /sbin/route add -net 0.0.0.0 10.8.0.49 128.0.0.0<br />
Jul 31 00:19:11 openvpn[54195]: /sbin/route add -net 128.0.0.0 10.8.0.49 128.0.0.0<br />
Jul 31 00:19:11 openvpn[54195]: /sbin/route add -net 10.8.0.0 10.8.0.49 255.255.255.0<br />
Jul 31 00:19:11 openvpn[54195]: GID set to nogroup<br />
Jul 31 00:19:11 openvpn[54195]: UID set to nobody<br />
Jul 31 00:19:11 openvpn[54195]: Initialization Sequence Completed</p>
<p dir="auto">Route Table,<br />
Destination Gateway Flags Refs Use Mtu Netif Expire<br />
0.0.0.0/1 10.8.0.49 UGS 0 344 1500 ovpnc1 =&gt;<br />
default 192.168.3.1 UGS 0 6093245 1500 re0<br />
8.8.4.4 192.168.2.1 UGHS 0 93 1500 re1<br />
8.8.8.8 192.168.2.1 UGHS 0 93 1500 re1<br />
10.8.0.0/24 10.8.0.49 UGS 0 3 1500 ovpnc1<br />
10.8.0.49 link#8 UH 0 0 1500 ovpnc1<br />
10.8.0.50 link#8 UHS 0 4598 16384 lo0<br />
127.0.0.1 link#4 UH 0 6688 16384 lo0<br />
128.0.0.0/1 10.8.0.49 UGS 0 878 1500 ovpnc1<br />
184.82.106.57/32 192.168.3.1 UGS 0 5483 1500 re0<br />
192.168.1.0/24 link#1 U 0 62509544 1500 em0<br />
192.168.1.1 link#1 UHS 0 0 16384 lo0<br />
192.168.2.0/24 link#3 U 0 31514 1500 re1<br />
192.168.2.2 link#3 UHS 0 0 16384 lo0<br />
192.168.3.0/24 link#2 U 0 1201442 1500 re0<br />
192.168.3.2 link#2 UHS 0 0 16384 lo0<br />
208.67.220.220 192.168.3.1 UGHS 0 93 1500 re0<br />
208.67.222.222 192.168.3.1 UGHS 0 95 1500 re0</p>
<p dir="auto">I sure there was someting that I have missing here, as come to think of it as OpenVPN assign an IP (10.8.0.50) to it client but 10.8.0.50 wasn't a Gateway it's just an IP assign to the VPN interface. pFsense box can use the OpenVPN traffic because it's connected to it like an odinary PC so the route works perfectly fine for it.</p>
<p dir="auto">Anyone had come across setting up OpenVPN connection please give me some tips.</p>
<p dir="auto">Thank in advance.</p>
]]></description><link>https://forum.netgate.com/topic/35897/problem-configuring-openvpn-connection-as-a-gateway</link><generator>RSS for Node</generator><lastBuildDate>Thu, 19 Nov 2026 06:30:36 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/35897.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Jul 2011 16:57:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Mon, 08 Aug 2011 22:05:07 GMT]]></title><description><![CDATA[<p dir="auto">I got the OpenVPN running as an Interface (WAN). All the trouble was on the OpenVPN server site. Although I wasn't setting up site-to-site OpenVPN network but I was still required to route pfSense box LAN subnet to the OpenVPN server. Thanks to <a href="http://forum.pfsense.org/index.php/topic,12888.0.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://forum.pfsense.org/index.php/topic,12888.0.html</a>.</p>
<p dir="auto">Solution,</p>
<p dir="auto">OpenVPN Server configuration /etc/openvpn/server.conf<br />
1. Enable "client-config-dir ccd"<br />
2. Add "route 192.168.1.0 255.255.255.0" (my pfSense box IP was 192.168.1.1 and all other LAN PC IP was behind)<br />
3. Add "iroute 192.168.1.0 255.255.255.0" to /etc/openvpn/ccd/client8 (client8 was the Common Name of my client certificate)<br />
4. Restart OpenVPN.<br />
5. WAOLA…..Enjoy.</p>
<p dir="auto">Take me a week to just a simple task. Hope this may help other people that are going to configure the samething. And thank for everyone that helping me out.</p>
]]></description><link>https://forum.netgate.com/post/290695</link><guid isPermaLink="true">https://forum.netgate.com/post/290695</guid><dc:creator><![CDATA[myandylai]]></dc:creator><pubDate>Mon, 08 Aug 2011 22:05:07 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Mon, 08 Aug 2011 17:46:48 GMT]]></title><description><![CDATA[<p dir="auto">I still can't send traffic from LAN to VPN (client) connection establish in pfSense even disabling OpenVPN server push route. But pfSense box itself can utilize the connection (VPN) properly. Anyway is there any difference between the 2 ifconfig below as I found pfSense was difference from my Ubuntu box.</p>
<p dir="auto">in Ubuntu<br />
Tue Aug  9 00:40:27 2011 /sbin/ifconfig tun0 10.8.0.6 pointopoint 10.8.0.5 mtu 1500</p>
<p dir="auto">In pfSense<br />
Aug 9 00:43:06 openvpn[59781]: /sbin/ifconfig ovpnc1 10.8.0.30 10.8.0.29 mtu 1500 netmask 255.255.255.255 up</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://forum.netgate.com/post/290639</link><guid isPermaLink="true">https://forum.netgate.com/post/290639</guid><dc:creator><![CDATA[andylai]]></dc:creator><pubDate>Mon, 08 Aug 2011 17:46:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Wed, 03 Aug 2011 09:49:14 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Metu69salemi. At the mean while I am going to keep on testing. Next I would disable server push route (push "redirect-gateway def1 bypass-dhcp") on my VPN server and manually route traffic to the VPN connection and hoping to get positive result.</p>
]]></description><link>https://forum.netgate.com/post/289845</link><guid isPermaLink="true">https://forum.netgate.com/post/289845</guid><dc:creator><![CDATA[myandylai]]></dc:creator><pubDate>Wed, 03 Aug 2011 09:49:14 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Tue, 02 Aug 2011 19:55:38 GMT]]></title><description><![CDATA[<p dir="auto">Ok, that's something what i've not accomplished yet. had no devices enough to test that –&gt; someone else has to answer</p>
]]></description><link>https://forum.netgate.com/post/289740</link><guid isPermaLink="true">https://forum.netgate.com/post/289740</guid><dc:creator><![CDATA[Metu69salemi]]></dc:creator><pubDate>Tue, 02 Aug 2011 19:55:38 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Tue, 02 Aug 2011 06:43:46 GMT]]></title><description><![CDATA[<p dir="auto">I am actually doing the other way around. pfSense box was an OpenVPN client connecting to a server outside the WAN. Then I would use the OpenVPN connection as an interface and direct traffic from LAN to it (established OpenVPN connection).</p>
]]></description><link>https://forum.netgate.com/post/289627</link><guid isPermaLink="true">https://forum.netgate.com/post/289627</guid><dc:creator><![CDATA[myandylai]]></dc:creator><pubDate>Tue, 02 Aug 2011 06:43:46 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Tue, 02 Aug 2011 04:55:32 GMT]]></title><description><![CDATA[<p dir="auto">Yes it's easy to share that knowledge</p>
<ul>
<li>
<p dir="auto">create openvpn server</p>
</li>
<li>
<p dir="auto">create users for it</p>
</li>
<li>
<p dir="auto">export user settings with installing package</p>
</li>
<li>
<p dir="auto">install package to client computers</p>
</li>
<li>
<p dir="auto">hard usage</p>
</li>
</ul>
<p dir="auto">Are you trying to have routing with vyprvpn or something similar? If that is the case, please use search here is someone else also who've done it with success</p>
]]></description><link>https://forum.netgate.com/post/289616</link><guid isPermaLink="true">https://forum.netgate.com/post/289616</guid><dc:creator><![CDATA[Metu69salemi]]></dc:creator><pubDate>Tue, 02 Aug 2011 04:55:32 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Mon, 01 Aug 2011 16:43:00 GMT]]></title><description><![CDATA[<p dir="auto">I am planning to let certain LAN PC to access through VPN and other going directly to normal WAN gateway or maybe only certain ports forwarded through VPN while other to normal WAN gateway.</p>
<p dir="auto">Anyway can share on how to use OpenVPN connection without interface? I have success making an OpenVPN connection working but bumped on a wall on how to use it. pfSense box itself can use the VPN connection but can't share the connection to connected LAN PC.</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://forum.netgate.com/post/289532</link><guid isPermaLink="true">https://forum.netgate.com/post/289532</guid><dc:creator><![CDATA[andylai]]></dc:creator><pubDate>Mon, 01 Aug 2011 16:43:00 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Mon, 01 Aug 2011 06:39:18 GMT]]></title><description><![CDATA[<p dir="auto">I'm having working openvpn connections without interface. Do you need to assign rules for vpn usage?<br />
But ofcourse it's not the meaning that it can't work with interface</p>
]]></description><link>https://forum.netgate.com/post/289467</link><guid isPermaLink="true">https://forum.netgate.com/post/289467</guid><dc:creator><![CDATA[Metu69salemi]]></dc:creator><pubDate>Mon, 01 Aug 2011 06:39:18 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Mon, 01 Aug 2011 02:19:17 GMT]]></title><description><![CDATA[<p dir="auto">Yes. My default gateway 192.168.3.1 was a router (NAT enable) and if I disable OPT2 (VPN) or just disable OpenVPN connection I will have internet connection back on all LAN PC.</p>
]]></description><link>https://forum.netgate.com/post/289441</link><guid isPermaLink="true">https://forum.netgate.com/post/289441</guid><dc:creator><![CDATA[myandylai]]></dc:creator><pubDate>Mon, 01 Aug 2011 02:19:17 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Sun, 31 Jul 2011 15:00:38 GMT]]></title><description><![CDATA[<p dir="auto">is this pfsense behind another nat?<br />
Your default gateway has address 192.168.3.1</p>
<p dir="auto">Can you have your internet connectivity back by disapling that opt2 interface?</p>
]]></description><link>https://forum.netgate.com/post/289390</link><guid isPermaLink="true">https://forum.netgate.com/post/289390</guid><dc:creator><![CDATA[Metu69salemi]]></dc:creator><pubDate>Sun, 31 Jul 2011 15:00:38 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Sun, 31 Jul 2011 10:46:44 GMT]]></title><description><![CDATA[<p dir="auto">I re-install a new pfSense 2.0 RC3 again to test.</p>
<p dir="auto">Start pfSense 2.0 RC3 Installation</p>
<p dir="auto">Interfaces<br />
WAN = re0<br />
LAN = em0<br />
OPT1 = re1</p>
<p dir="auto">1. Configure Interface<br />
LAN<br />
Statis<br />
IP = 192.168.1.1/24<br />
Gateway = none<br />
Block private nerworks = no<br />
Block bogon networks = no</p>
<p dir="auto">WAN1 (changed from original name WAN to WAN1)<br />
Statis<br />
IP = 192.168.3.2<br />
Gateway = none<br />
Block private nerworks = yes<br />
Block bogon networks = yes</p>
<p dir="auto">OPT1<br />
Disabled</p>
<p dir="auto">2. Add Gateway<br />
Interface WAN1<br />
Name = WAN1GW<br />
Gateway = 192.168.3.1<br />
Default Gateway = yes</p>
<p dir="auto">3. Change Gateway of Interface WAN1 from none to WAN1GW</p>
<p dir="auto">4. General Setup<br />
Hostname = pfsense<br />
Domain = mydomain<br />
DNS servers = 8.8.8.8, 8.8.4.4, 208.67.222.222, 208.67.220.220</p>
<p dir="auto">Notes, At this point LAN PC already can access Internet using pfSense (192.168.1.1)</p>
<p dir="auto">Current Route Tables,<br />
Destination Gateway Flags Refs Use Mtu Netif Expire<br />
default 192.168.3.1 UGS 0 2668 1500 re0<br />
127.0.0.1 link#4 UH 0 131 16384 lo0<br />
192.168.1.0/24 link#1 U 0 5560 1500 em0<br />
192.168.1.1 link#1 UHS 0 0 16384 lo0<br />
192.168.3.0/24 link#2 U 0 1072 1500 re0<br />
192.168.3.2 link#2 UHS 0 0 16384 lo0</p>
<p dir="auto">5. Firewall Rules,<br />
No changes. Keep original setting as all traffic on LAN pass thru Default Gateway</p>
<p dir="auto">6. Add certs<br />
CAs<br />
Description name = OpenVPN CA1<br />
Method = Import an existing Certificate Authority<br />
Certificate date = yes (paste from ca.crt)<br />
Certificate PrivateKey = **empty<br />
Serial = **empty</p>
<p dir="auto">Certificates<br />
Method = Import from existing Certificate<br />
Description = OpenVPN Client 1<br />
Certificate data = yes (paste from client1.crt)<br />
Private key data = yes (paste from client1.key)</p>
<p dir="auto">7. Configure OpenVPN (client)<br />
General information<br />
Disable this client = no<br />
Server mode = Peer to Peer (SSL/TLS)<br />
Protocol = UDP<br />
Device mode = tun<br />
Interface = WAN1<br />
Local port = **empty<br />
Server host or address = nostatus.dyndns.org<br />
Server port = 1194<br />
Proxy host or address = **empty<br />
Proxy port = **empty<br />
Proxy Authentication method = none<br />
Infinitely resolve server = yes<br />
Description = OpenVPN Client1</p>
<p dir="auto">Cryptographic Settings<br />
TLS Authentication<br />
Enable authentication of TLS packets = yes<br />
Automatically generate a shared TLS authentication key = no<br />
Paste a ta.key into the blank<br />
Peer Certificate Authority = OpenVPN CA1<br />
Client Certificate = OpenVPN Client 1 (CA: OpenVPN CA1)<br />
Encryption algorithm = BF-CBC (128-bit)<br />
Hardware Crypto = no</p>
<p dir="auto">Tunnel Settings<br />
Tunnel network = **empty<br />
Remote network = **empty<br />
Limit outgoing bandwidth = **empty<br />
Compresssion = yes<br />
Type-of-Service = no</p>
<p dir="auto">Advanced<br />
user nobody;group nogroup;persist-key;persist-tun;mute-replay-warnings;ns-cert-type server;verb 3;</p>
<p dir="auto">The setting works,<br />
Jul 31 16:48:21 openvpn[51553]: MANAGEMENT: Client connected from /var/etc/openvpn/client1.sock<br />
Jul 31 16:48:21 openvpn[51553]: MANAGEMENT: CMD 'state 1'<br />
Jul 31 16:48:21 openvpn[51553]: MANAGEMENT: Client disconnected<br />
Jul 31 16:48:22 openvpn[51553]: SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)<br />
Jul 31 16:48:22 openvpn[51553]: PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 208.67.220.220,dhcp-option DNS 208.67.222.222,route 10.8.0.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.50 10.8.0.49'<br />
Jul 31 16:48:22 openvpn[51553]: OPTIONS IMPORT: timers and/or timeouts modified<br />
Jul 31 16:48:22 openvpn[51553]: OPTIONS IMPORT: –ifconfig/up options modified<br />
Jul 31 16:48:22 openvpn[51553]: OPTIONS IMPORT: route options modified<br />
Jul 31 16:48:22 openvpn[51553]: OPTIONS IMPORT: –ip-win32 and/or --dhcp-option options modified<br />
Jul 31 16:48:22 openvpn[51553]: ROUTE default_gateway=192.168.3.1<br />
Jul 31 16:48:22 openvpn[51553]: TUN/TAP device /dev/tun1 opened<br />
Jul 31 16:48:22 openvpn[51553]: do_ifconfig, tt-&gt;ipv6=0, tt-&gt;did_ifconfig_ipv6_setup=0<br />
Jul 31 16:48:22 openvpn[51553]: /sbin/ifconfig ovpnc1 10.8.0.50 10.8.0.49 mtu 1500 netmask 255.255.255.255 up<br />
Jul 31 16:48:22 openvpn[51553]: /usr/local/sbin/ovpn-linkup ovpnc1 1500 1542 10.8.0.50 10.8.0.49 init<br />
Jul 31 16:48:22 openvpn[51553]: /sbin/route add -net 184.82.106.57 192.168.3.1 255.255.255.255<br />
Jul 31 16:48:22 openvpn[51553]: /sbin/route add -net 0.0.0.0 10.8.0.49 128.0.0.0<br />
Jul 31 16:48:22 openvpn[51553]: /sbin/route add -net 128.0.0.0 10.8.0.49 128.0.0.0<br />
Jul 31 16:48:22 openvpn[51553]: /sbin/route add -net 10.8.0.0 10.8.0.49 255.255.255.0<br />
Jul 31 16:48:22 openvpn[51553]: GID set to nogroup<br />
Jul 31 16:48:22 openvpn[51553]: UID set to nobody<br />
Jul 31 16:48:22 openvpn[51553]: Initialization Sequence Completed</p>
<p dir="auto">8. Assign new OpenVPN interface<br />
OPT2 = ovpnc1 (OpenVPN Client 1)</p>
<p dir="auto">9. Configure new OPT2 interface<br />
Enable = yes<br />
Description = VPN1 (change from OPT2 to VPN1)<br />
Type = none<br />
Block private networks = no<br />
Block bogon networks = no</p>
<p dir="auto">Gateway VPN1 was automatically added to Gateways but was empty. So I stop OpenVPN service and start it back then the Gateway became</p>
<p dir="auto">Name = VPN1<br />
Interface = VPN1<br />
Gateway = 10.8.0.49<br />
Monitor IP 10.8.0.49<br />
Descriptions = Interface VPN1 Dynamic Gateway</p>
<p dir="auto">After all this now all LAN PC was not able to access Internet at all. Firewall rules must direct all traffic to WAN1GW for LAN PC to able to access the Internet. Directing traffic to VPN1 was not going to have connection. But pfSense box itself can use the VPN1 connection properly as I can use it to traceroute www.google.com,</p>
<p dir="auto">1  10.8.0.1 (10.8.0.1)  286.634 ms  285.648 ms  285.744 ms<br />
2  vserver254.hostnoc.net (64.191.104.2)  285.557 ms  285.966 ms  285.266 ms<br />
3  ec0-61.agg04.sctn01.hostnoc.net (96.9.184.62)  286.791 ms  287.188 ms  287.195 ms<br />
4  xe2-04.gwy03.sctn01.hostnoc.net (64.120.243.37)  286.268 ms  286.295 ms  285.985 ms<br />
5  core1-0-2-0.lga.net.google.com (198.32.160.130)  292.331 ms  291.641 ms  292.409 ms<br />
6  72.14.238.232 (72.14.238.232)  292.123 ms<br />
   209.85.255.68 (209.85.255.68)  292.051 ms  292.015 ms<br />
7  209.85.251.88 (209.85.251.88)  292.087 ms<br />
   209.85.252.2 (209.85.252.2)  292.176 ms<br />
   209.85.251.35 (209.85.251.35)  292.958 ms<br />
8  216.239.46.217 (216.239.46.217)  338.438 ms<br />
   216.239.46.215 (216.239.46.215)  325.366 ms  326.351 ms<br />
9  72.14.239.90 (72.14.239.90)  434.872 ms<br />
   209.85.242.215 (209.85.242.215)  392.571 ms  346.066 ms<br />
10  209.85.254.46 (209.85.254.46)  351.195 ms<br />
   209.85.254.226 (209.85.254.226)  352.363 ms<br />
   209.85.254.46 (209.85.254.46)  351.047 ms<br />
11  209.85.254.239 (209.85.254.239)  351.459 ms<br />
   209.85.254.233 (209.85.254.233)  352.136 ms<br />
   209.85.254.235 (209.85.254.235)  351.238 ms<br />
12  64.233.175.14 (64.233.175.14)  354.199 ms<br />
   216.239.46.78 (216.239.46.78)  364.060 ms<br />
   216.239.47.34 (216.239.47.34)  358.298 ms<br />
13  qw-in-f99.1e100.net (74.125.93.99)  352.759 ms  351.899 ms  351.907 ms</p>
<p dir="auto">But if I traceroute from a LAN PC it's not going to pass traffic to any where after pfSense box,</p>
<p dir="auto">traceroute to www.google.com (74.125.93.147), 30 hops max, 60 byte packets<br />
1  pfsense.mydomain (192.168.1.1)  0.424 ms  0.606 ms  0.593 ms<br />
2  * * *<br />
3  * * *<br />
4  * * *<br />
5  * * *<br />
6  * * *<br />
7  * * *<br />
8  * * *<br />
9  * * *<br />
10  * * *<br />
11  * * *<br />
12  * * *<br />
13  * * *<br />
14  * * *<br />
15  * * *<br />
16  * * *<br />
17  * * *^C</p>
<p dir="auto">It seem that the defautl gateway assign by the OpenVPN server (10.8.0.49) wasn't listening to any packet outside of the pfSense box. Here's a few screen shot I captured</p>
<p dir="auto">Route Tables after establish OpenVPN connection,<br />
<img src="http://i889.photobucket.com/albums/ac92/ltetlie/pfsense/route_aftervpn.png" alt="" class="img-markdown  img-fluid" /></p>
<p dir="auto">Interface status from dashboard<br />
<img src="http://i889.photobucket.com/albums/ac92/ltetlie/pfsense/interface.png" alt="" class="img-markdown  img-fluid" /></p>
<p dir="auto">Gateway<br />
<img src="http://i889.photobucket.com/albums/ac92/ltetlie/pfsense/gateway.png" alt="" class="img-markdown  img-fluid" /></p>
<p dir="auto">Gateway Status<br />
<img src="http://i889.photobucket.com/albums/ac92/ltetlie/pfsense/status_gateway.png" alt="" class="img-markdown  img-fluid" /></p>
<p dir="auto">VPN1 interface (ovpnc1)<br />
Status up<br />
MAC address 00:00:00:00:00:00<br />
IP address 10.8.0.50  <br />
Subnet mask 255.255.255.255<br />
Gateway 10.8.0.49<br />
In/out packets 1566/1566 (212 KB/630 KB)<br />
In/out packets (pass) 1566/9380 (212 KB/630 KB)<br />
In/out packets (block) 0/0 (0 bytes/0 bytes)<br />
In/out errors 0/0<br />
Collisions 0</p>
<p dir="auto">It seem that even pfSense box cannot acess / ping the virtual gateway (10.8.0.49) assign by the OpenVPN server but able to use the connection for itself. This condition is same if I use my Ubuntu to establish a connection to OpenVPN server the auto assigned virtual gateway was basically un-accessible but the connection would still run as traffic automatically send to OpenVPN server IP (10.8.0.1).</p>
<p dir="auto">andylai@ubuntudesktop:~$ traceroute www.google.com<br />
traceroute to www.google.com (74.125.93.105), 30 hops max, 60 byte packets<br />
1  10.8.0.1 (10.8.0.1)  288.375 ms  292.266 ms  295.581 ms<br />
2  vserver254.hostnoc.net (64.191.104.2)  298.698 ms  301.438 ms  304.860 ms<br />
3  ec0-61.agg04.sctn01.hostnoc.net (96.9.184.62)  311.722 ms  312.667 ms  315.837 ms<br />
4  xe2-04.gwy03.sctn01.hostnoc.net (64.120.243.37)  318.344 ms  322.214 ms  325.170 ms<br />
5  core1-0-2-0.lga.net.google.com (198.32.160.130)  333.771 ms  337.687 ms  340.635 ms<br />
6  72.14.238.232 (72.14.238.232)  344.324 ms 209.85.255.68 (209.85.255.68)  293.080 ms^C</p>
]]></description><link>https://forum.netgate.com/post/289374</link><guid isPermaLink="true">https://forum.netgate.com/post/289374</guid><dc:creator><![CDATA[myandylai]]></dc:creator><pubDate>Sun, 31 Jul 2011 10:46:44 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Sun, 31 Jul 2011 02:23:48 GMT]]></title><description><![CDATA[<p dir="auto">Looks like your routes are fine. Not enough info there to tell you where or why that's failing. Does DNS work? Try traceroute to an IP to see where it goes and how far it gets.</p>
]]></description><link>https://forum.netgate.com/post/289358</link><guid isPermaLink="true">https://forum.netgate.com/post/289358</guid><dc:creator><![CDATA[cmb]]></dc:creator><pubDate>Sun, 31 Jul 2011 02:23:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem configuring OpenVPN connection as a Gateway on Sat, 30 Jul 2011 21:24:00 GMT]]></title><description><![CDATA[<p dir="auto">First of all update to rc3</p>
]]></description><link>https://forum.netgate.com/post/289344</link><guid isPermaLink="true">https://forum.netgate.com/post/289344</guid><dc:creator><![CDATA[Metu69salemi]]></dc:creator><pubDate>Sat, 30 Jul 2011 21:24:00 GMT</pubDate></item></channel></rss>