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)













0















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










share|improve this question







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
















0















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










share|improve this question







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














0












0








0








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










share|improve this question







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






share|improve this question







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.











share|improve this question







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.









share|improve this question




share|improve this question






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


















  • 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











1 Answer
1






active

oldest

votes


















0














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.





share|improve this answer























  • 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












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.









draft saved

draft discarded


















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









0














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.





share|improve this answer























  • 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
















0














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.





share|improve this answer























  • 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














0












0








0







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.





share|improve this answer













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.






share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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











Licika is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















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.




draft saved


draft discarded














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





















































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

Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

fallocate: fallocate failed: Text file busy in Ubuntu 17.04? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)defragmenting and increasing performance of old lubuntu system with swap partitionIssue with increasing the root partition from the swapthis /usr/bin/dpkg returned error || ubuntu-16.04, 64bitDefault 17.04 swap file locationHow to Resize Ubuntu 17.04 Zesty Swap file size?Ubuntu freezes from online formsMy Laptop is not starting after upgrade ubuntu 16.04 (Kernel 4.8.0-38 to 04.10.0-36)hcp: ERROR: FALLOCATE FAILED!Not sure my swap is being usedWine 3.0 asking for more virtual free swap

Where else does the Shulchan Aruch quote an authority by name?Parashat Metzora+HagadolPesach/PassoverShulchan Aruch UTF-8Anonymous glosses in the Shulchan AruchWhy is the Shulchan Aruch definitive?Siman 32, Kitzur Shulchan Aruch: UntranslatedLitvaks/Yeshivish and Shulchan AruchBuying a Shulchan AruchEnglish version of SHULCHAN ARUCHIs there any place where Shulchan Aruch rules with the Rosh against the Rif and Rambam?Are there practices where Sepharadim do not hold by Shulchan Aruch?5th part of the shulchan aruch