Allowing access to my server's UDP ports when the server is connected to OpenVPNCannot get outside VPN (same settings work on Debian)OpenVPN Access Server manual configurationUFW setup for OpenVPN serverFlooded with UDP bad checksum on port 53 (but port is closed and checksum offloaded)ufw and iptables show port open, everything else suggests it's closedCan't connect to OpenVPN Access Server using Network Manager configurationHow to auto ban an IP when he access some ports?VPS, VPN and traffic forwardingPort forwarding over OpenVPNAllowing access to my server's ports when the server is connected to OpenVPN (Ubuntu Server 18.10)
In 'Revenger,' what does 'cove' come from?
Unlock My Phone! February 2018
Madden-Julian Oscillation (MJO) - How to interpret the index?
Mathematica command that allows it to read my intentions
Why doesn't using multiple commands with a || or && conditional work?
What reasons are there for a Capitalist to oppose a 100% inheritance tax?
Is "remove commented out code" correct English?
Probability that a draw from a normal distribution is some number greater than another draw from the same distribution
What mechanic is there to disable a threat instead of killing it?
Can my sorcerer use a spellbook only to collect spells and scribe scrolls, not cast?
What does “the session was packed” mean in this context?
Cursor Replacement for Newbies
Intersection Puzzle
Examples of smooth manifolds admitting inbetween one and a continuum of complex structures
Would Slavery Reparations be considered Bills of Attainder and hence Illegal?
Avoiding the "not like other girls" trope?
How to show a landlord what we have in savings?
Is it logically or scientifically possible to artificially send energy to the body?
Extract rows of a table, that include less than x NULLs
Expand and Contract
Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?
Forgetting the musical notes while performing in concert
How seriously should I take size and weight limits of hand luggage?
How dangerous is XSS?
Allowing access to my server's UDP ports when the server is connected to OpenVPN
Cannot get outside VPN (same settings work on Debian)OpenVPN Access Server manual configurationUFW setup for OpenVPN serverFlooded with UDP bad checksum on port 53 (but port is closed and checksum offloaded)ufw and iptables show port open, everything else suggests it's closedCan't connect to OpenVPN Access Server using Network Manager configurationHow to auto ban an IP when he access some ports?VPS, VPN and traffic forwardingPort forwarding over OpenVPNAllowing access to my server's ports when the server is connected to OpenVPN (Ubuntu Server 18.10)
I've recently bought some cheap vps, and would like to open some ports, i already done that on server with ufw. btw I'm connecting to a VPN that allows me to forward ports to my local machine via OpenVPN since my local provder is blocking ports.
OpenVPN works fine on my pc all connected and working but it shows me only TCP ports are open,all UDP ports closed when i connected on VPN, but when i check on some webiste port checker and paste ip of server it tells its open..
i guess it has somehing with iptables or something like that..? Could anyone help me? THANKS
networking vpn iptables openvpn
New contributor
Licika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I've recently bought some cheap vps, and would like to open some ports, i already done that on server with ufw. btw I'm connecting to a VPN that allows me to forward ports to my local machine via OpenVPN since my local provder is blocking ports.
OpenVPN works fine on my pc all connected and working but it shows me only TCP ports are open,all UDP ports closed when i connected on VPN, but when i check on some webiste port checker and paste ip of server it tells its open..
i guess it has somehing with iptables or something like that..? Could anyone help me? THANKS
networking vpn iptables openvpn
New contributor
Licika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Sorry, this is a bit confused, how did you check that UDP port is closed (this is technically not possible like you can do with TCP port with telnet by example). In fact, what do you want to open?
– ob2
1 hour ago
First of all thanks for answering. i want to host games in ps4 so my plan was to order server setup vpn and have open ports simple as that.. but when i setup everything i saw on ps4 that nat is still not open.. Then i check on my pc with this tool and saw this: TCP: img.techpowerup.org/190403/capture094-20190404.jpg and UDP: img.techpowerup.org/190403/capture095-20190404.jpg
– Licika
1 hour ago
add a comment |
I've recently bought some cheap vps, and would like to open some ports, i already done that on server with ufw. btw I'm connecting to a VPN that allows me to forward ports to my local machine via OpenVPN since my local provder is blocking ports.
OpenVPN works fine on my pc all connected and working but it shows me only TCP ports are open,all UDP ports closed when i connected on VPN, but when i check on some webiste port checker and paste ip of server it tells its open..
i guess it has somehing with iptables or something like that..? Could anyone help me? THANKS
networking vpn iptables openvpn
New contributor
Licika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I've recently bought some cheap vps, and would like to open some ports, i already done that on server with ufw. btw I'm connecting to a VPN that allows me to forward ports to my local machine via OpenVPN since my local provder is blocking ports.
OpenVPN works fine on my pc all connected and working but it shows me only TCP ports are open,all UDP ports closed when i connected on VPN, but when i check on some webiste port checker and paste ip of server it tells its open..
i guess it has somehing with iptables or something like that..? Could anyone help me? THANKS
networking vpn iptables openvpn
networking vpn iptables openvpn
New contributor
Licika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Licika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Licika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 2 hours ago
LicikaLicika
1
1
New contributor
Licika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Licika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Licika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Sorry, this is a bit confused, how did you check that UDP port is closed (this is technically not possible like you can do with TCP port with telnet by example). In fact, what do you want to open?
– ob2
1 hour ago
First of all thanks for answering. i want to host games in ps4 so my plan was to order server setup vpn and have open ports simple as that.. but when i setup everything i saw on ps4 that nat is still not open.. Then i check on my pc with this tool and saw this: TCP: img.techpowerup.org/190403/capture094-20190404.jpg and UDP: img.techpowerup.org/190403/capture095-20190404.jpg
– Licika
1 hour ago
add a comment |
Sorry, this is a bit confused, how did you check that UDP port is closed (this is technically not possible like you can do with TCP port with telnet by example). In fact, what do you want to open?
– ob2
1 hour ago
First of all thanks for answering. i want to host games in ps4 so my plan was to order server setup vpn and have open ports simple as that.. but when i setup everything i saw on ps4 that nat is still not open.. Then i check on my pc with this tool and saw this: TCP: img.techpowerup.org/190403/capture094-20190404.jpg and UDP: img.techpowerup.org/190403/capture095-20190404.jpg
– Licika
1 hour ago
Sorry, this is a bit confused, how did you check that UDP port is closed (this is technically not possible like you can do with TCP port with telnet by example). In fact, what do you want to open?
– ob2
1 hour ago
Sorry, this is a bit confused, how did you check that UDP port is closed (this is technically not possible like you can do with TCP port with telnet by example). In fact, what do you want to open?
– ob2
1 hour ago
First of all thanks for answering. i want to host games in ps4 so my plan was to order server setup vpn and have open ports simple as that.. but when i setup everything i saw on ps4 that nat is still not open.. Then i check on my pc with this tool and saw this: TCP: img.techpowerup.org/190403/capture094-20190404.jpg and UDP: img.techpowerup.org/190403/capture095-20190404.jpg
– Licika
1 hour ago
First of all thanks for answering. i want to host games in ps4 so my plan was to order server setup vpn and have open ports simple as that.. but when i setup everything i saw on ps4 that nat is still not open.. Then i check on my pc with this tool and saw this: TCP: img.techpowerup.org/190403/capture094-20190404.jpg and UDP: img.techpowerup.org/190403/capture095-20190404.jpg
– Licika
1 hour ago
add a comment |
1 Answer
1
active
oldest
votes
If I understood what you are trying to achieve, you are try to do NAT from a VPS and forward TCP and UDP port to a local network reachable through a VPN tunnel (OpenVPN). This is probably not working due a routeback issue, your local network is probably configured to reach internet without using OpenVPN connection, so traffic coming from your NAT will not answering to your VPS.
What you can try is proxying your traffic over a service (like nginx). Here an example.
Install Nginx (on your VPS):
apt install nginx
Create a new folder dedicated for your port rules
mkdir /etc/nginx/ports/
Add the following lines to the end of the file /etc/nginx/nginx.conf
stream
include /etc/nginx/ports/*;
Finally create any file you want with your rules, into this new folder. Here an example of tcp and udp redirect.
server
listen 1234;
proxy_pass <computer-ip>:1234;
server
listen 1234 udp;
proxy_pass <computer-ip>:1234;
Of course, port 1234 must be opened in your ufw as your mentioned.
Im gonna try this right now and i will update results
– Licika
1 hour ago
I still didnt get it working, have i done something wrong?? UFW: img.techpowerup.org/190403/capture096-20190404.jpg img.techpowerup.org/190403/capture097-20190404.jpg
– Licika
52 mins ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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
);
);
Licika is a new contributor. Be nice, and check out our Code of Conduct.
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%2faskubuntu.com%2fquestions%2f1131023%2fallowing-access-to-my-servers-udp-ports-when-the-server-is-connected-to-openvpn%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
If I understood what you are trying to achieve, you are try to do NAT from a VPS and forward TCP and UDP port to a local network reachable through a VPN tunnel (OpenVPN). This is probably not working due a routeback issue, your local network is probably configured to reach internet without using OpenVPN connection, so traffic coming from your NAT will not answering to your VPS.
What you can try is proxying your traffic over a service (like nginx). Here an example.
Install Nginx (on your VPS):
apt install nginx
Create a new folder dedicated for your port rules
mkdir /etc/nginx/ports/
Add the following lines to the end of the file /etc/nginx/nginx.conf
stream
include /etc/nginx/ports/*;
Finally create any file you want with your rules, into this new folder. Here an example of tcp and udp redirect.
server
listen 1234;
proxy_pass <computer-ip>:1234;
server
listen 1234 udp;
proxy_pass <computer-ip>:1234;
Of course, port 1234 must be opened in your ufw as your mentioned.
Im gonna try this right now and i will update results
– Licika
1 hour ago
I still didnt get it working, have i done something wrong?? UFW: img.techpowerup.org/190403/capture096-20190404.jpg img.techpowerup.org/190403/capture097-20190404.jpg
– Licika
52 mins ago
add a comment |
If I understood what you are trying to achieve, you are try to do NAT from a VPS and forward TCP and UDP port to a local network reachable through a VPN tunnel (OpenVPN). This is probably not working due a routeback issue, your local network is probably configured to reach internet without using OpenVPN connection, so traffic coming from your NAT will not answering to your VPS.
What you can try is proxying your traffic over a service (like nginx). Here an example.
Install Nginx (on your VPS):
apt install nginx
Create a new folder dedicated for your port rules
mkdir /etc/nginx/ports/
Add the following lines to the end of the file /etc/nginx/nginx.conf
stream
include /etc/nginx/ports/*;
Finally create any file you want with your rules, into this new folder. Here an example of tcp and udp redirect.
server
listen 1234;
proxy_pass <computer-ip>:1234;
server
listen 1234 udp;
proxy_pass <computer-ip>:1234;
Of course, port 1234 must be opened in your ufw as your mentioned.
Im gonna try this right now and i will update results
– Licika
1 hour ago
I still didnt get it working, have i done something wrong?? UFW: img.techpowerup.org/190403/capture096-20190404.jpg img.techpowerup.org/190403/capture097-20190404.jpg
– Licika
52 mins ago
add a comment |
If I understood what you are trying to achieve, you are try to do NAT from a VPS and forward TCP and UDP port to a local network reachable through a VPN tunnel (OpenVPN). This is probably not working due a routeback issue, your local network is probably configured to reach internet without using OpenVPN connection, so traffic coming from your NAT will not answering to your VPS.
What you can try is proxying your traffic over a service (like nginx). Here an example.
Install Nginx (on your VPS):
apt install nginx
Create a new folder dedicated for your port rules
mkdir /etc/nginx/ports/
Add the following lines to the end of the file /etc/nginx/nginx.conf
stream
include /etc/nginx/ports/*;
Finally create any file you want with your rules, into this new folder. Here an example of tcp and udp redirect.
server
listen 1234;
proxy_pass <computer-ip>:1234;
server
listen 1234 udp;
proxy_pass <computer-ip>:1234;
Of course, port 1234 must be opened in your ufw as your mentioned.
If I understood what you are trying to achieve, you are try to do NAT from a VPS and forward TCP and UDP port to a local network reachable through a VPN tunnel (OpenVPN). This is probably not working due a routeback issue, your local network is probably configured to reach internet without using OpenVPN connection, so traffic coming from your NAT will not answering to your VPS.
What you can try is proxying your traffic over a service (like nginx). Here an example.
Install Nginx (on your VPS):
apt install nginx
Create a new folder dedicated for your port rules
mkdir /etc/nginx/ports/
Add the following lines to the end of the file /etc/nginx/nginx.conf
stream
include /etc/nginx/ports/*;
Finally create any file you want with your rules, into this new folder. Here an example of tcp and udp redirect.
server
listen 1234;
proxy_pass <computer-ip>:1234;
server
listen 1234 udp;
proxy_pass <computer-ip>:1234;
Of course, port 1234 must be opened in your ufw as your mentioned.
answered 1 hour ago
ob2ob2
2,004810
2,004810
Im gonna try this right now and i will update results
– Licika
1 hour ago
I still didnt get it working, have i done something wrong?? UFW: img.techpowerup.org/190403/capture096-20190404.jpg img.techpowerup.org/190403/capture097-20190404.jpg
– Licika
52 mins ago
add a comment |
Im gonna try this right now and i will update results
– Licika
1 hour ago
I still didnt get it working, have i done something wrong?? UFW: img.techpowerup.org/190403/capture096-20190404.jpg img.techpowerup.org/190403/capture097-20190404.jpg
– Licika
52 mins ago
Im gonna try this right now and i will update results
– Licika
1 hour ago
Im gonna try this right now and i will update results
– Licika
1 hour ago
I still didnt get it working, have i done something wrong?? UFW: img.techpowerup.org/190403/capture096-20190404.jpg img.techpowerup.org/190403/capture097-20190404.jpg
– Licika
52 mins ago
I still didnt get it working, have i done something wrong?? UFW: img.techpowerup.org/190403/capture096-20190404.jpg img.techpowerup.org/190403/capture097-20190404.jpg
– Licika
52 mins ago
add a comment |
Licika is a new contributor. Be nice, and check out our Code of Conduct.
Licika is a new contributor. Be nice, and check out our Code of Conduct.
Licika is a new contributor. Be nice, and check out our Code of Conduct.
Licika is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1131023%2fallowing-access-to-my-servers-udp-ports-when-the-server-is-connected-to-openvpn%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
Sorry, this is a bit confused, how did you check that UDP port is closed (this is technically not possible like you can do with TCP port with telnet by example). In fact, what do you want to open?
– ob2
1 hour ago
First of all thanks for answering. i want to host games in ps4 so my plan was to order server setup vpn and have open ports simple as that.. but when i setup everything i saw on ps4 that nat is still not open.. Then i check on my pc with this tool and saw this: TCP: img.techpowerup.org/190403/capture094-20190404.jpg and UDP: img.techpowerup.org/190403/capture095-20190404.jpg
– Licika
1 hour ago