OpenVPN bridge gateway stops all traffic












0















I am not sure if this is a linux or windows issue. I have openvpn set up with a bridge interface that includes tap0 and eth0. I have my client machine (win10) getting its IP through my dhcp server. The config line server-bridge causes the dhcp gateway to be stripped out so the client doesn't receive it. When I change that line to server-bridge nogw the gateway address is given to the client, but I can't ping or connect to the gateway. What do I have wrong?



If you need to see config files, please let me know.



Client (win10) routing table



IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.79 10
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
172.16.0.0 255.255.0.0 On-link 172.16.1.205 257
172.16.1.205 255.255.255.255 On-link 172.16.1.205 257
172.16.255.255 255.255.255.255 On-link 172.16.1.205 257
192.168.1.0 255.255.255.0 On-link 192.168.1.79 266
192.168.1.79 255.255.255.255 On-link 192.168.1.79 266
192.168.1.255 255.255.255.255 On-link 192.168.1.79 266
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 192.168.1.79 266
224.0.0.0 240.0.0.0 On-link 172.16.1.205 257
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 192.168.1.79 266
255.255.255.255 255.255.255.255 On-link 172.16.1.205 257
===========================================================================


When the gateway is allowed through, there is another entry for 0.0.0.0 0.0.0.0 172.16.0.1 3



OpenVPN Server conf file



port 1194
proto udp
dev tap
ca /etc/openvpn/ca.crt
cert /etc/openvpn/myservername.crt
key /etc/openvpn/myservername.key # This file should be kept secret
dh /etc/openvpn/dh2048.pem
server-bridge
script-security 2
up "up br0 eth0"
down "down br0 eth0"
down-pre
push "dhcp-option DNS 172.16.0.1"
client-to-client
keepalive 10 120
tls-auth /etc/openvpn/ta.key 0 # This file is secret
cipher BF-CBC # Blowfish (default)
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3


Adding nogw to the server-bridge line allows the gateway to go through on dhcp but I can't reach the server anymore.



OpenVPN client conf:



client
dev tap
remote jmerrill.us 1194
nobind
persist-key
persist-tun
ca "C:\Program Files\OpenVPN\config\ca.crt"
cert "C:\Program Files\OpenVPN\config\client1.crt"
key "C:\Program Files\OpenVPN\config\client1.key"
tls-auth "C:\Program Files\OpenVPN\config\ta.key" 1
cipher BF-CBC
comp-lzo
verb 3









share|improve this question

























  • What does your routing table say?

    – user1794469
    2 hours ago











  • Definitely need to see the configuration files, please. Strip out comments and blank lines, and the two of them should fit nicely inside your question. (Don't forget to select them each as a block and use {} to mark them as code blocks.) If you obfuscate IP addresses and authentication information, please do it self-consistently.

    – roaima
    2 hours ago








  • 1





    @roaima my thought was that the client isn't on the same network as the gateway. But that's a pretty specific guess on my part and you are right to just ask for the config

    – user1794469
    2 hours ago











  • @user1794469 The client vpn connection is on the same network as the server's LAN because of the bridge.

    – James
    21 mins ago











  • @roaima I have added more info. Do you need anything else?

    – James
    20 mins ago
















0















I am not sure if this is a linux or windows issue. I have openvpn set up with a bridge interface that includes tap0 and eth0. I have my client machine (win10) getting its IP through my dhcp server. The config line server-bridge causes the dhcp gateway to be stripped out so the client doesn't receive it. When I change that line to server-bridge nogw the gateway address is given to the client, but I can't ping or connect to the gateway. What do I have wrong?



If you need to see config files, please let me know.



Client (win10) routing table



IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.79 10
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
172.16.0.0 255.255.0.0 On-link 172.16.1.205 257
172.16.1.205 255.255.255.255 On-link 172.16.1.205 257
172.16.255.255 255.255.255.255 On-link 172.16.1.205 257
192.168.1.0 255.255.255.0 On-link 192.168.1.79 266
192.168.1.79 255.255.255.255 On-link 192.168.1.79 266
192.168.1.255 255.255.255.255 On-link 192.168.1.79 266
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 192.168.1.79 266
224.0.0.0 240.0.0.0 On-link 172.16.1.205 257
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 192.168.1.79 266
255.255.255.255 255.255.255.255 On-link 172.16.1.205 257
===========================================================================


When the gateway is allowed through, there is another entry for 0.0.0.0 0.0.0.0 172.16.0.1 3



OpenVPN Server conf file



port 1194
proto udp
dev tap
ca /etc/openvpn/ca.crt
cert /etc/openvpn/myservername.crt
key /etc/openvpn/myservername.key # This file should be kept secret
dh /etc/openvpn/dh2048.pem
server-bridge
script-security 2
up "up br0 eth0"
down "down br0 eth0"
down-pre
push "dhcp-option DNS 172.16.0.1"
client-to-client
keepalive 10 120
tls-auth /etc/openvpn/ta.key 0 # This file is secret
cipher BF-CBC # Blowfish (default)
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3


Adding nogw to the server-bridge line allows the gateway to go through on dhcp but I can't reach the server anymore.



OpenVPN client conf:



client
dev tap
remote jmerrill.us 1194
nobind
persist-key
persist-tun
ca "C:\Program Files\OpenVPN\config\ca.crt"
cert "C:\Program Files\OpenVPN\config\client1.crt"
key "C:\Program Files\OpenVPN\config\client1.key"
tls-auth "C:\Program Files\OpenVPN\config\ta.key" 1
cipher BF-CBC
comp-lzo
verb 3









share|improve this question

























  • What does your routing table say?

    – user1794469
    2 hours ago











  • Definitely need to see the configuration files, please. Strip out comments and blank lines, and the two of them should fit nicely inside your question. (Don't forget to select them each as a block and use {} to mark them as code blocks.) If you obfuscate IP addresses and authentication information, please do it self-consistently.

    – roaima
    2 hours ago








  • 1





    @roaima my thought was that the client isn't on the same network as the gateway. But that's a pretty specific guess on my part and you are right to just ask for the config

    – user1794469
    2 hours ago











  • @user1794469 The client vpn connection is on the same network as the server's LAN because of the bridge.

    – James
    21 mins ago











  • @roaima I have added more info. Do you need anything else?

    – James
    20 mins ago














0












0








0








I am not sure if this is a linux or windows issue. I have openvpn set up with a bridge interface that includes tap0 and eth0. I have my client machine (win10) getting its IP through my dhcp server. The config line server-bridge causes the dhcp gateway to be stripped out so the client doesn't receive it. When I change that line to server-bridge nogw the gateway address is given to the client, but I can't ping or connect to the gateway. What do I have wrong?



If you need to see config files, please let me know.



Client (win10) routing table



IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.79 10
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
172.16.0.0 255.255.0.0 On-link 172.16.1.205 257
172.16.1.205 255.255.255.255 On-link 172.16.1.205 257
172.16.255.255 255.255.255.255 On-link 172.16.1.205 257
192.168.1.0 255.255.255.0 On-link 192.168.1.79 266
192.168.1.79 255.255.255.255 On-link 192.168.1.79 266
192.168.1.255 255.255.255.255 On-link 192.168.1.79 266
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 192.168.1.79 266
224.0.0.0 240.0.0.0 On-link 172.16.1.205 257
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 192.168.1.79 266
255.255.255.255 255.255.255.255 On-link 172.16.1.205 257
===========================================================================


When the gateway is allowed through, there is another entry for 0.0.0.0 0.0.0.0 172.16.0.1 3



OpenVPN Server conf file



port 1194
proto udp
dev tap
ca /etc/openvpn/ca.crt
cert /etc/openvpn/myservername.crt
key /etc/openvpn/myservername.key # This file should be kept secret
dh /etc/openvpn/dh2048.pem
server-bridge
script-security 2
up "up br0 eth0"
down "down br0 eth0"
down-pre
push "dhcp-option DNS 172.16.0.1"
client-to-client
keepalive 10 120
tls-auth /etc/openvpn/ta.key 0 # This file is secret
cipher BF-CBC # Blowfish (default)
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3


Adding nogw to the server-bridge line allows the gateway to go through on dhcp but I can't reach the server anymore.



OpenVPN client conf:



client
dev tap
remote jmerrill.us 1194
nobind
persist-key
persist-tun
ca "C:\Program Files\OpenVPN\config\ca.crt"
cert "C:\Program Files\OpenVPN\config\client1.crt"
key "C:\Program Files\OpenVPN\config\client1.key"
tls-auth "C:\Program Files\OpenVPN\config\ta.key" 1
cipher BF-CBC
comp-lzo
verb 3









share|improve this question
















I am not sure if this is a linux or windows issue. I have openvpn set up with a bridge interface that includes tap0 and eth0. I have my client machine (win10) getting its IP through my dhcp server. The config line server-bridge causes the dhcp gateway to be stripped out so the client doesn't receive it. When I change that line to server-bridge nogw the gateway address is given to the client, but I can't ping or connect to the gateway. What do I have wrong?



If you need to see config files, please let me know.



Client (win10) routing table



IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.79 10
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
172.16.0.0 255.255.0.0 On-link 172.16.1.205 257
172.16.1.205 255.255.255.255 On-link 172.16.1.205 257
172.16.255.255 255.255.255.255 On-link 172.16.1.205 257
192.168.1.0 255.255.255.0 On-link 192.168.1.79 266
192.168.1.79 255.255.255.255 On-link 192.168.1.79 266
192.168.1.255 255.255.255.255 On-link 192.168.1.79 266
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 192.168.1.79 266
224.0.0.0 240.0.0.0 On-link 172.16.1.205 257
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 192.168.1.79 266
255.255.255.255 255.255.255.255 On-link 172.16.1.205 257
===========================================================================


When the gateway is allowed through, there is another entry for 0.0.0.0 0.0.0.0 172.16.0.1 3



OpenVPN Server conf file



port 1194
proto udp
dev tap
ca /etc/openvpn/ca.crt
cert /etc/openvpn/myservername.crt
key /etc/openvpn/myservername.key # This file should be kept secret
dh /etc/openvpn/dh2048.pem
server-bridge
script-security 2
up "up br0 eth0"
down "down br0 eth0"
down-pre
push "dhcp-option DNS 172.16.0.1"
client-to-client
keepalive 10 120
tls-auth /etc/openvpn/ta.key 0 # This file is secret
cipher BF-CBC # Blowfish (default)
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3


Adding nogw to the server-bridge line allows the gateway to go through on dhcp but I can't reach the server anymore.



OpenVPN client conf:



client
dev tap
remote jmerrill.us 1194
nobind
persist-key
persist-tun
ca "C:\Program Files\OpenVPN\config\ca.crt"
cert "C:\Program Files\OpenVPN\config\client1.crt"
key "C:\Program Files\OpenVPN\config\client1.key"
tls-auth "C:\Program Files\OpenVPN\config\ta.key" 1
cipher BF-CBC
comp-lzo
verb 3






linux openvpn bridge gateway






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 8 mins ago







James

















asked 3 hours ago









JamesJames

11




11













  • What does your routing table say?

    – user1794469
    2 hours ago











  • Definitely need to see the configuration files, please. Strip out comments and blank lines, and the two of them should fit nicely inside your question. (Don't forget to select them each as a block and use {} to mark them as code blocks.) If you obfuscate IP addresses and authentication information, please do it self-consistently.

    – roaima
    2 hours ago








  • 1





    @roaima my thought was that the client isn't on the same network as the gateway. But that's a pretty specific guess on my part and you are right to just ask for the config

    – user1794469
    2 hours ago











  • @user1794469 The client vpn connection is on the same network as the server's LAN because of the bridge.

    – James
    21 mins ago











  • @roaima I have added more info. Do you need anything else?

    – James
    20 mins ago



















  • What does your routing table say?

    – user1794469
    2 hours ago











  • Definitely need to see the configuration files, please. Strip out comments and blank lines, and the two of them should fit nicely inside your question. (Don't forget to select them each as a block and use {} to mark them as code blocks.) If you obfuscate IP addresses and authentication information, please do it self-consistently.

    – roaima
    2 hours ago








  • 1





    @roaima my thought was that the client isn't on the same network as the gateway. But that's a pretty specific guess on my part and you are right to just ask for the config

    – user1794469
    2 hours ago











  • @user1794469 The client vpn connection is on the same network as the server's LAN because of the bridge.

    – James
    21 mins ago











  • @roaima I have added more info. Do you need anything else?

    – James
    20 mins ago

















What does your routing table say?

– user1794469
2 hours ago





What does your routing table say?

– user1794469
2 hours ago













Definitely need to see the configuration files, please. Strip out comments and blank lines, and the two of them should fit nicely inside your question. (Don't forget to select them each as a block and use {} to mark them as code blocks.) If you obfuscate IP addresses and authentication information, please do it self-consistently.

– roaima
2 hours ago







Definitely need to see the configuration files, please. Strip out comments and blank lines, and the two of them should fit nicely inside your question. (Don't forget to select them each as a block and use {} to mark them as code blocks.) If you obfuscate IP addresses and authentication information, please do it self-consistently.

– roaima
2 hours ago






1




1





@roaima my thought was that the client isn't on the same network as the gateway. But that's a pretty specific guess on my part and you are right to just ask for the config

– user1794469
2 hours ago





@roaima my thought was that the client isn't on the same network as the gateway. But that's a pretty specific guess on my part and you are right to just ask for the config

– user1794469
2 hours ago













@user1794469 The client vpn connection is on the same network as the server's LAN because of the bridge.

– James
21 mins ago





@user1794469 The client vpn connection is on the same network as the server's LAN because of the bridge.

– James
21 mins ago













@roaima I have added more info. Do you need anything else?

– James
20 mins ago





@roaima I have added more info. Do you need anything else?

– James
20 mins ago










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f495185%2fopenvpn-bridge-gateway-stops-all-traffic%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f495185%2fopenvpn-bridge-gateway-stops-all-traffic%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Entries order in /etc/network/interfaces

新発田市

Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)