OpenVPN client on OpenWRT not routing traffic through VPN on Linksys WRT3200ACM Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Come Celebrate our 10 Year Anniversary!Problems setting up a VPN: can connect but can't ping anyoneOpenVPN routing problemOpenVPN connection from within 2nd subnet in office?OpenVPN: forward client's LAN to the VPNAllowing SSH on a server with an active OpenVPN clientOpenVPN server and client configuration for openwrtConfiguring OpenVPN server (Debian 8) and client (Windows 10)OpenVPN and multicast routingOpenVPN Client Local LAN AccessHow to configure iptables for a dial-up VPN with OpenVPN and two interfaces?
tabularx column has extra padding at right?
Why doesn't the university give past final exams' answers?
FME Console for testing
Etymology of 見舞い
What were wait-states, and why was it only an issue for PCs?
Can a Knight grant Knighthood to another?
Can a Wizard take the Magic Initiate feat and select spells from the Wizard list?
Can I take recommendation from someone I met at a conference?
When does Bran Stark remember Jamie pushing him?
Help Recreating a Table
Has a Nobel Peace laureate ever been accused of war crimes?
How to produce a PS1 prompt in bash or ksh93 similar to tcsh
What is the evidence that custom checks in Northern Ireland are going to result in violence?
2 sample t test for sample sizes - 30,000 and 150,000
Why isn't everyone flabbergasted about Bran's "gift"?
What is the definining line between a helicopter and a drone a person can ride in?
Why these surprising proportionalities of integrals involving odd zeta values?
Proving inequality for positive definite matrix
How to create a command for the "strange m" symbol in latex?
A German immigrant ancestor has a "Registration Affidavit of Alien Enemy" on file. What does that mean exactly?
Is Bran literally the world's memory?
Why do people think Winterfell crypts is the safest place for women, children & old people?
Putting Ant-Man on house arrest
Is my guitar’s action too high?
OpenVPN client on OpenWRT not routing traffic through VPN on Linksys WRT3200ACM
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Problems setting up a VPN: can connect but can't ping anyoneOpenVPN routing problemOpenVPN connection from within 2nd subnet in office?OpenVPN: forward client's LAN to the VPNAllowing SSH on a server with an active OpenVPN clientOpenVPN server and client configuration for openwrtConfiguring OpenVPN server (Debian 8) and client (Windows 10)OpenVPN and multicast routingOpenVPN Client Local LAN AccessHow to configure iptables for a dial-up VPN with OpenVPN and two interfaces?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am unable to get the traffic routed through the VPN tunnel, when using OpenVPN on OpenWRT firmware.
The router is a WRT3200ACM, connecting to OpenVPN server on Ubuntu.
OpenVPN client is connecting and I am able to ping ip's on the the remote network from SSH console on the router. However, all my connectet clients on the network are disconnected from the internet, when the OpenVPN connection is established.
The OpenVPN client configuration currently looks like this:
dev tun
proto udp
remote x.x.x.x 1194
cipher AES-256-CBC
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
redirect-gateway def1
verb 3
<ca>
-----BEGIN CERTIFICATE-----
REMOVED
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
REMOVED
-----END OpenVPN Static key V1-----
</tls-auth>
<cert>
-----BEGIN CERTIFICATE-----
REMOVED
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
REMOVED
-----END PRIVATE KEY-----
</key>
This configuration works perfectly on the Windows and MacOS clients, and traffic is being routed correctly, but as soon as I connect this on the Linksys WRT3200ACM router, things go wrong.
I have also tested using dd-wrt firmware on the router, but the problem was the same, however it was not possible to ping remote ip's when using dd-wrt, so the OpenWRT solution works slightly better.
The local network configuration is:
Network: 192.168.237.0
Subnet: 255.255.255.0
GW: 192.168.237.1
The remote network configuration is:
Network: 192.168.37.0
Subnet: 255.255.255.0
GW: 192.168.37.1
and the OpenVPN virtual network configuration is:
Network: 10.8.0.0
Subnet: 255.255.255.0
GW: 10.8.0.1
IP-range: 10.8.0.6-10
OpenVPN server: 10.8.0.5
networking openvpn router openwrt linksys
add a comment |
I am unable to get the traffic routed through the VPN tunnel, when using OpenVPN on OpenWRT firmware.
The router is a WRT3200ACM, connecting to OpenVPN server on Ubuntu.
OpenVPN client is connecting and I am able to ping ip's on the the remote network from SSH console on the router. However, all my connectet clients on the network are disconnected from the internet, when the OpenVPN connection is established.
The OpenVPN client configuration currently looks like this:
dev tun
proto udp
remote x.x.x.x 1194
cipher AES-256-CBC
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
redirect-gateway def1
verb 3
<ca>
-----BEGIN CERTIFICATE-----
REMOVED
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
REMOVED
-----END OpenVPN Static key V1-----
</tls-auth>
<cert>
-----BEGIN CERTIFICATE-----
REMOVED
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
REMOVED
-----END PRIVATE KEY-----
</key>
This configuration works perfectly on the Windows and MacOS clients, and traffic is being routed correctly, but as soon as I connect this on the Linksys WRT3200ACM router, things go wrong.
I have also tested using dd-wrt firmware on the router, but the problem was the same, however it was not possible to ping remote ip's when using dd-wrt, so the OpenWRT solution works slightly better.
The local network configuration is:
Network: 192.168.237.0
Subnet: 255.255.255.0
GW: 192.168.237.1
The remote network configuration is:
Network: 192.168.37.0
Subnet: 255.255.255.0
GW: 192.168.37.1
and the OpenVPN virtual network configuration is:
Network: 10.8.0.0
Subnet: 255.255.255.0
GW: 10.8.0.1
IP-range: 10.8.0.6-10
OpenVPN server: 10.8.0.5
networking openvpn router openwrt linksys
add a comment |
I am unable to get the traffic routed through the VPN tunnel, when using OpenVPN on OpenWRT firmware.
The router is a WRT3200ACM, connecting to OpenVPN server on Ubuntu.
OpenVPN client is connecting and I am able to ping ip's on the the remote network from SSH console on the router. However, all my connectet clients on the network are disconnected from the internet, when the OpenVPN connection is established.
The OpenVPN client configuration currently looks like this:
dev tun
proto udp
remote x.x.x.x 1194
cipher AES-256-CBC
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
redirect-gateway def1
verb 3
<ca>
-----BEGIN CERTIFICATE-----
REMOVED
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
REMOVED
-----END OpenVPN Static key V1-----
</tls-auth>
<cert>
-----BEGIN CERTIFICATE-----
REMOVED
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
REMOVED
-----END PRIVATE KEY-----
</key>
This configuration works perfectly on the Windows and MacOS clients, and traffic is being routed correctly, but as soon as I connect this on the Linksys WRT3200ACM router, things go wrong.
I have also tested using dd-wrt firmware on the router, but the problem was the same, however it was not possible to ping remote ip's when using dd-wrt, so the OpenWRT solution works slightly better.
The local network configuration is:
Network: 192.168.237.0
Subnet: 255.255.255.0
GW: 192.168.237.1
The remote network configuration is:
Network: 192.168.37.0
Subnet: 255.255.255.0
GW: 192.168.37.1
and the OpenVPN virtual network configuration is:
Network: 10.8.0.0
Subnet: 255.255.255.0
GW: 10.8.0.1
IP-range: 10.8.0.6-10
OpenVPN server: 10.8.0.5
networking openvpn router openwrt linksys
I am unable to get the traffic routed through the VPN tunnel, when using OpenVPN on OpenWRT firmware.
The router is a WRT3200ACM, connecting to OpenVPN server on Ubuntu.
OpenVPN client is connecting and I am able to ping ip's on the the remote network from SSH console on the router. However, all my connectet clients on the network are disconnected from the internet, when the OpenVPN connection is established.
The OpenVPN client configuration currently looks like this:
dev tun
proto udp
remote x.x.x.x 1194
cipher AES-256-CBC
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
redirect-gateway def1
verb 3
<ca>
-----BEGIN CERTIFICATE-----
REMOVED
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
REMOVED
-----END OpenVPN Static key V1-----
</tls-auth>
<cert>
-----BEGIN CERTIFICATE-----
REMOVED
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
REMOVED
-----END PRIVATE KEY-----
</key>
This configuration works perfectly on the Windows and MacOS clients, and traffic is being routed correctly, but as soon as I connect this on the Linksys WRT3200ACM router, things go wrong.
I have also tested using dd-wrt firmware on the router, but the problem was the same, however it was not possible to ping remote ip's when using dd-wrt, so the OpenWRT solution works slightly better.
The local network configuration is:
Network: 192.168.237.0
Subnet: 255.255.255.0
GW: 192.168.237.1
The remote network configuration is:
Network: 192.168.37.0
Subnet: 255.255.255.0
GW: 192.168.37.1
and the OpenVPN virtual network configuration is:
Network: 10.8.0.0
Subnet: 255.255.255.0
GW: 10.8.0.1
IP-range: 10.8.0.6-10
OpenVPN server: 10.8.0.5
networking openvpn router openwrt linksys
networking openvpn router openwrt linksys
asked Jun 9 '18 at 20:57
GunnarGunnar
1062
1062
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I think in your case this is a routing issue. You state that the configuration works well on your clients - hence your clients get an IP-Addr within the 10.8.0.6-10/24
range and route all traffic via the Ubuntu. The sending IP here is a 10.8.0.x
IP. Furthermore, the ping works with SSH from your local router when connected, but not from the clients. If you want all your clients to connect to the internet via the OpenVPN-tunnel, then the sending IP address is 192.168.237.0
- hence your local network. The Ubuntu server does not know anything by default about that network. You have two options here:
- add a static route on your ubuntu machine that network
192.168.237.0/24
is reachable via the10.8.0.x
IP of your router. You then have to ensure that the router always gets the very same IP-Address - add a routing protocol - e.g. RIP2. You can easily enable this by installing
quagga-zebra
andquagga-ripd
on openwrt and ubuntu. Then you dont have to care about the dynamic IP of the router within the OpenVPN.
If the Ubuntu server does not directly access the internet and performs a NAT you have to further distribute the route to your next device / firewall to enable it to reach back to your clients. Either via RIP or via a static route. You probably have to adjust the NAT-statement too.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f915931%2fopenvpn-client-on-openwrt-not-routing-traffic-through-vpn-on-linksys-wrt3200acm%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I think in your case this is a routing issue. You state that the configuration works well on your clients - hence your clients get an IP-Addr within the 10.8.0.6-10/24
range and route all traffic via the Ubuntu. The sending IP here is a 10.8.0.x
IP. Furthermore, the ping works with SSH from your local router when connected, but not from the clients. If you want all your clients to connect to the internet via the OpenVPN-tunnel, then the sending IP address is 192.168.237.0
- hence your local network. The Ubuntu server does not know anything by default about that network. You have two options here:
- add a static route on your ubuntu machine that network
192.168.237.0/24
is reachable via the10.8.0.x
IP of your router. You then have to ensure that the router always gets the very same IP-Address - add a routing protocol - e.g. RIP2. You can easily enable this by installing
quagga-zebra
andquagga-ripd
on openwrt and ubuntu. Then you dont have to care about the dynamic IP of the router within the OpenVPN.
If the Ubuntu server does not directly access the internet and performs a NAT you have to further distribute the route to your next device / firewall to enable it to reach back to your clients. Either via RIP or via a static route. You probably have to adjust the NAT-statement too.
add a comment |
I think in your case this is a routing issue. You state that the configuration works well on your clients - hence your clients get an IP-Addr within the 10.8.0.6-10/24
range and route all traffic via the Ubuntu. The sending IP here is a 10.8.0.x
IP. Furthermore, the ping works with SSH from your local router when connected, but not from the clients. If you want all your clients to connect to the internet via the OpenVPN-tunnel, then the sending IP address is 192.168.237.0
- hence your local network. The Ubuntu server does not know anything by default about that network. You have two options here:
- add a static route on your ubuntu machine that network
192.168.237.0/24
is reachable via the10.8.0.x
IP of your router. You then have to ensure that the router always gets the very same IP-Address - add a routing protocol - e.g. RIP2. You can easily enable this by installing
quagga-zebra
andquagga-ripd
on openwrt and ubuntu. Then you dont have to care about the dynamic IP of the router within the OpenVPN.
If the Ubuntu server does not directly access the internet and performs a NAT you have to further distribute the route to your next device / firewall to enable it to reach back to your clients. Either via RIP or via a static route. You probably have to adjust the NAT-statement too.
add a comment |
I think in your case this is a routing issue. You state that the configuration works well on your clients - hence your clients get an IP-Addr within the 10.8.0.6-10/24
range and route all traffic via the Ubuntu. The sending IP here is a 10.8.0.x
IP. Furthermore, the ping works with SSH from your local router when connected, but not from the clients. If you want all your clients to connect to the internet via the OpenVPN-tunnel, then the sending IP address is 192.168.237.0
- hence your local network. The Ubuntu server does not know anything by default about that network. You have two options here:
- add a static route on your ubuntu machine that network
192.168.237.0/24
is reachable via the10.8.0.x
IP of your router. You then have to ensure that the router always gets the very same IP-Address - add a routing protocol - e.g. RIP2. You can easily enable this by installing
quagga-zebra
andquagga-ripd
on openwrt and ubuntu. Then you dont have to care about the dynamic IP of the router within the OpenVPN.
If the Ubuntu server does not directly access the internet and performs a NAT you have to further distribute the route to your next device / firewall to enable it to reach back to your clients. Either via RIP or via a static route. You probably have to adjust the NAT-statement too.
I think in your case this is a routing issue. You state that the configuration works well on your clients - hence your clients get an IP-Addr within the 10.8.0.6-10/24
range and route all traffic via the Ubuntu. The sending IP here is a 10.8.0.x
IP. Furthermore, the ping works with SSH from your local router when connected, but not from the clients. If you want all your clients to connect to the internet via the OpenVPN-tunnel, then the sending IP address is 192.168.237.0
- hence your local network. The Ubuntu server does not know anything by default about that network. You have two options here:
- add a static route on your ubuntu machine that network
192.168.237.0/24
is reachable via the10.8.0.x
IP of your router. You then have to ensure that the router always gets the very same IP-Address - add a routing protocol - e.g. RIP2. You can easily enable this by installing
quagga-zebra
andquagga-ripd
on openwrt and ubuntu. Then you dont have to care about the dynamic IP of the router within the OpenVPN.
If the Ubuntu server does not directly access the internet and performs a NAT you have to further distribute the route to your next device / firewall to enable it to reach back to your clients. Either via RIP or via a static route. You probably have to adjust the NAT-statement too.
answered Jun 28 '18 at 23:12
Felix HFelix H
16
16
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f915931%2fopenvpn-client-on-openwrt-not-routing-traffic-through-vpn-on-linksys-wrt3200acm%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown