How to forward UDP on TCP?

Hey everyone,
I'm behind a firewall that blocks all UDP (torrents, games...) requests.
I usually ssh to my server and forward all the trafic to it using a transparent
proxy application (sshuttle). I saw that openvpn handles UDP as well (sshuttle doesn't).
I read the documentation of openvpn but I didn't understand which flags to use
and which not to. Actually I suck at networking and I'm not even sure if the title of the question
is correct (would explain why I couldn't find anything on the forum/online).
So could you please help me out? and sorry for any mistake I did.
Thanks

OpenVPN, has two operating mode: tun and tap. Tun just tunnels IP traffic (UDP and TCP), while Tap acts like a real ethernet cable. To achieve this, OpenVPN has to make a network connection with the remote server. To do so, you have two choices again: UDP and TCP.
What you want is probably tun+tcp, which will make the UDP traffic going into OpenVPN to be transmitted over the TCP connection and go out of the server as UDP.
The config options are
proto tcp
dev tap
The wiki entry (https://wiki.archlinux.org/index.php/Op … ll_OpenVPN) should work fine for you. Just don't forget to use "proto tcp" in both server and client configs. The default setup should be perfectly fine for you.
As noted by brain0, tunelling UDP over TCP will cause higher latency on UDP. It should work fine for torrents, but the latency will be something 1.5x the latency from you and the server  + the latency between the server and the final destination of the UDP traffic. Gaming on that might be painful.

Similar Messages

  • How can I open both UDP and TCP ports

    Hi,
    How can i open both tcp and UDP ports for an IP in Cisco ASA?
    Regards
    Ejaz

    Are you referring to port opening in Cisco ASA to permit certain traffic? I believe the following document should help.
    http://www.cisco.com/en/US/docs/security/asa/asa82/configuration/guide/acl_overview.html
    Adding a Standard Access List
    hostname(config)# access-list access_list_name standard {deny | permit} {any | ip_address mask}
    Example:
    hostname(config)# access-list OSPF standard permit 192.168.1.0 255.255.255.0
    http://www.cisco.com/en/US/docs/security/asa/asa82/configuration/guide/acl_standard.html
    Adding an Extended Access List
    access-list access_list_name [line line_number] [extended] {deny | permit} protocol source_address mask [operator port] dest_address mask [operator port | icmp_type] [inactive]
    Example:
    hostname(config)# access-list ACL_IN extended permit ip any any
    http://www.cisco.com/en/US/docs/security/asa/asa82/configuration/guide/acl_extended.html
    Hope this will help.

  • BEFW11S4 UDP AND TCP PORT opening

    How do i open UDP AND TCP ports specifically TCP ports: 80, 6667, 28910, 29900, 29920
    UDP ports: 4321, 27900 Its for a networkable game i need to open these ports to play it.

    Ok But when i try disabling the numbers in the forwarding field i run out of spaces in the field to be able to disable them Is there an advanced firewall settings that i dont know about? I put in all of the range forwarding and put the range forwarding start for example 80 originally (TCP ports: 80, 6667, 28910, 29900, 29920
    UDP ports: 4321, 27900) The ones i try to disable i run out of fields to disable them in the forwarding for example there are 10 slots for disabling and Im trying to disable them on two numbers 192.168.1.101. and 192.168.1.100 So i need to disable them for both ip numbers I got 10 fields to enter it into them and 10 x 2 is more than the numbers..... You get me?? and on top of that i dont know if what i did was enough Linksys doesnt want to help me without paying 30 dollars so im just thinking i should buy a new router....... i mean they charge 39 dollars for a new router and they want me to pay 39 dollars for tech support it just doesnt make any sense........

  • Forwarding UDP port for Remote Desktop Gateway

    What is the correct way to forward UDP 3391 port for RDG server?
    What direction should I choose for UDP port parameters? "Receive" or "Receive Send" or something else?

    Aurimas N, Were you able to get RemtoteFX working through TMG? I have the same issue whre I can not get UDP working with clients conneciting over the WAN.  Can you tell me specifically how you got this to work on your TMG?
    Thanks
    I am not sure how to check to be honest, on TMG I only see 443 port being used, and since it is remoteApp there is no connection indicator, or I don't know how to access it.

  • UDP and TCP ports

    Hi:
    I have a question. As we know, scanning TCP ports is a lot eaiser than UDP ports because active UDP ports don't respond and there are other reasons as well.
    try{
    Socket soc= new Scoket(address, portnumber);
    catch(Throwable e){ System.out.println(e)}
    look at the code above, it can only tell you active TCP ports for the Throwable e tells you nothing about UDP ports. An active UDP port doesn' respond to the connection call "soc". Therefore it will throw an exception(connection refused) after trying to connect an active UDP port. This exception is just like those of closed TCP ports.
    What i am saying is that active UDP ports will be treated the same as closed TCP ports. They are hidden in closed TCP ports. How do i sift them out? Any solutions?

    I am basically trying to determine how many UDP and TCP ports on a machine are open. Open TCP ports are easy to see. But UDP ports are tricky. Can you please tell me more in detail using a datagram socket?

  • UDP vs TCP (hands-on experience required)

    Dearest colleagues,
    I've done a few hours of research learning what I can about TCP vs UDP. I could still use some input from those of you who have used both in real-world, scaleable, distributed, commercial, and successful projects.
    I have a new position at a new company. My part of this project consists of 3 types of distributed Java server programs: desktop client, data server, and controller server. Thousands of desktop clients will be periodically transferring "megs" of data to several data servers. The (singular) controller will persist metadata into a database, and also coordinate data transfer between the desktop clients and the data servers.
    TCP seems appropriate for all "control" and metadata communications between all these components. Everyone talks to the controller for everything, except for the periodic transfer of the "actual" data. The desktop clients send that data directly to the appropriate data server using either UDP or TCP.
    One key project requirement is the ability to provide network throttling control, so as not to saturate the client's LAN or WAN. This product mustn't disrupt the client's real-time network data (like VoiP and video conferencing). I expect the controller server to manage this.
    Someone with more seniority than me at this company has suggested TFTP (which uses UDP) as the best protocol for the data transfer protocol. This person also claims that UDP allows larger packet sizes and less protocol overhead, resulting in greater data transfer rates than TCP.
    I have a number of concerns and questions:
    1) Can't the packet sizes be set for both UDP and TCP? If so, can't one equal both (in terms of average overhead) just by adjusting the packet sizes?
    2) I realize that one needs to accomodate UDP droppage in order to compare throughput with TCP. In a LAN environment is it reasonable to assume that droppage would be minimal or zero? )Otherwise wouldn't it be a LAN problem someone would be fixing?)
    3) If #2 above allows me to assume minimal UDP droppage, does the underlying packet protocol overhead difference give UDP a substantial throughput advantage? If so, how much (roughly)?
    4) I believe UDP packets are treated as "high priority" but "low reliability". For my application, doesn't that mean that UDP is more likely to cause problems by competing for VoiP and VidCon bandwith?
    5) What about trying to write my servers to allow for either UDP or TCP to be
    used for data transfer? If you have done this, would you recommend for or against it? Why?
    6) If you had to recommend just one book for me for right now (given this project), which would it be:
    6a) Java Distributed Computing (O'Reilly) by Jim Farley
    6b) Internetworking with TCP/IP by Doug Comer's
    6c) Unix Network Programming by Richard Stevens
    Being the New Kid on the Block at this company, I need to know all I can as I navigate the politics with this more senior person. I'm no newbie - I've been programming professionally for 27 years, the last 6 in Java including networking, sockets, JDBC, etc.
    Thank you very much for your assistance.

    Dearest colleagues,
    I've done a few hours of research learning what I can
    about TCP vs UDP. I could still use some input from
    those of you who have used both in real-world,
    scaleable, distributed, commercial, and successful
    projects.
    I have a new position at a new company. My part of
    this project consists of 3 types of distributed Java
    server programs: desktop client, data server, and
    controller server. Thousands of desktop clients will
    be periodically transferring "megs" of data to
    several data servers. The (singular) controller will
    persist metadata into a database, and also coordinate
    data transfer between the desktop clients and the
    data servers.
    TCP seems appropriate for all "control" and metadata
    communications between all these components.
    Everyone talks to the controller for everything,
    , except for the periodic transfer of the "actual"
    data. The desktop clients send that data directly to
    the appropriate data server using either UDP or TCP.Key feature of TCP is connection orianted and reliablity. If you need long sessions with high reliability TCP is the way to go.
    (Long sessions means the client do multiple transaction through same session)
    But reliablity of TCP comes at a cost. (Less bandwith efficiency) but of course if you need to transfer data I say TCP is better.
    But if you want your clients need to work in unreliable network links (Onse that breakes down often) TCP might cause problems since you have to re establish the connection every time there is a problem.
    Also if the sessions are short then UDP is better becouse if you Use TCP for very short sessions Connection establishment and closing can take more time that the actual data transfer.
    But if you use UDP you must deal with the unreliability.
    One key project requirement is the ability to provide
    network throttling control, so as not to saturate the
    client's LAN or WAN. This product mustn't disrupt
    the client's real-time network data (like VoiP and
    video conferencing). I expect the controller server
    to manage this.It is true that TCP add more owerhead than UDP but in most cases compaired to the amount of data you transfer through network that is nothing.
    Key to save the bandwith is to designe a efficint communication protocol which minimize the amount of data that you have to transfer.
    Also you can Implement input/output streams which can limit the number of bytes that can be written or read through them. (Even though that got nothing to do with networking that will give you full control over the bandwidth usage by the programs)
    Someone with more seniority than me at this company
    has suggested TFTP (which uses UDP) as the best
    protocol for the data transfer protocol. This person
    also claims that UDP allows larger packet sizes and
    less protocol overhead, resulting in greater data
    transfer rates than TCP.TFTP is good for transfering small files through networrks since there is less overhead but when it comes to large amounts of data there is no much difference.
    But TFTP have a advantage over ureliable networks.
    (If the networks fails TCP connection fails, but in UDP a network faliour is just a loss of several datagrams which the programs anyways should be able to handle)
    I have a number of concerns and questions:
    1) Can't the packet sizes be set for both UDP and
    TCP? If so, can't one equal both (in terms of
    average overhead) just by adjusting the packet
    sizes?In tcp packet size is not a big issue since data are transfered through stream. Once the streams are open you can keep them opena as long as you want and send as many bytes as you want.
    2) I realize that one needs to accomodate UDP
    droppage in order to compare throughput with TCP. In
    a LAN environment is it reasonable to assume that
    droppage would be minimal or zero? )Otherwise
    wouldn't it be a LAN problem someone would be
    fixing?)Even though UPD is said to be unreliable if the programs are written well. In a LAN UDP is almost as areliable as TCP(This is depend on the reliability of LAN)
    Thats why it says when you write UDP applications you must test them in slow unreliable Wan links.
    3) If #2 above allows me to assume minimal UDP
    droppage, does the underlying packet protocol
    overhead difference give UDP a substantial throughput
    advantage? If so, how much (roughly)?It depends
    Ex:-
    Lts assume UDB header is 25 bytes and TCP heade is 50 for simplicity
    If your data size is 10 byte.
    lets say UDP adds overhead of 5 bytes
    now the efficiency is 10/(10+25) = 0.38
    If TCP adds 10 overhead bytes
    now the efficiency is 10/(10+50) = 0.16
    lets doa the same calculation for 1000 bytes
    UDP
    1000/(1000 + 25) = 0.97
    TCP
    1000/(1000+ 50) = 0.95
    So it depends on your application and data volume
    4) I believe UDP packets are treated as "high
    priority" but "low reliability". For my application,
    doesn't that mean that UDP is more likely to cause
    problems by competing for VoiP and VidCon bandwith?No Priority is set on IP level so it can be applied to both TCP and UDP
    5) What about trying to write my servers to allow
    for either UDP or TCP to be
    used for data transfer? If you have done this, would
    you recommend for or against it? Why?For data transfer I recomend TCP becouse reliability is important.
    If you use UDP you have to handle reliability (Lots of programming)
    6) If you had to recommend just one book for me for
    right now (given this project), which would it be:
    6a) Java Distributed Computing (O'Reilly) by Jim
    Farley
    6b) Internetworking with TCP/IP by Doug Comer's
    6c) Unix Network Programming by Richard Stevens
    Being the New Kid on the Block at this company, I
    need to know all I can as I navigate the politics
    with this more senior person. I'm no newbie - I've
    been programming professionally for 27 years, the
    last 6 in Java including networking, sockets, JDBC,
    etc.
    Thank you very much for your assistance.

  • Only forwarding UDP

    Hi, I've had my Airport Extreme for a while now but I've only just recently noticed a problem with the port forwarding. It seems that software can only access UDP ports and not TCP. I don't know the difference between them and I'm hoping that this is a common, easily fixable problem. If not, I can supply more information.

    The AirPort Utility, used for the administration of the 802.11n AirPort Extreme Base Station (AEBSn), allows for the identification of both UDP & TCP port for port mapping.
    Depending on the software's requirements, they may require either or both UDP and TCP ports to communicate properly through a router or computer.
    As an example, the following is a list of the most commonly used UDP & TCP ports by Apple-related applications: Apple Support: Well known TCP and UDP ports used by Apple software products
    The basic difference between the UDP and TCP protocols is the level of error-checking done with UDP using little or none at one end and TCP using significant amounts of error-checking at the other.

  • How to forward support messages to SAP in non-working time automatically?

    Hi colleagues and Happy New Year!
    I have a question: how to forward support messages to SAP at non-working time automatically?
    Details:
    when a support message is created at working time it shouldn't leave my system, but when
    a support message is created at non working time, for example, on saturday night it should be sent to SAP automatically. Where in the system I can find the options to customize it to provide these requirements?
    Edited by: Helen Rudnikovskaja on Jan 3, 2009 12:36 PM

    Hi These 2 notes wil solve your problem,
    Note 1084744 - Problems with the automatic function "Send to SAP"
    Note 1225682
    Pls assign pts.

  • How to forward received messages in my iphone 4s with ios.7.04

    How to forward received messages in my iphone 4s with ios.7.04

    There is no way that I've found other than to copy & paste.

  • How to forward sms messages via email with date and contact received info

    Does anyone know how to forward sms messages via email with date and contact received info.
    Currently when I forward only the body copy of the sms message is sent in the email.

    This is not currently possible. Sorry.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Sharing Internet With Windows XP - Firewall Off Only (How to unblock UDP)

    Hi
    I can share my Mac connection with my windows PC but only if the firewall is off.
    On the Tiger forums it says go onto services and click the advanced tab and unblock UDP traffic - and then firewall can be turned on.
    This option doesn't seem to be available in Panther - so until I upgrade can anyone tell me how I unblock UDP traffic in Panther?
    Thanks

    Hello albertoPeralta. Welcome to the Apple Discussions!
    To open ports on the Time Capsule, you would use the AirPort Utility to configure Port Mapping.
    AEBSn - Port Mapping Setup
    To setup port mapping on an 802.11n AirPort Extreme Base Station (AEBSn), either connect to the AEBSn's wireless network or temporarily connect directly, using an Ethernet cable, to one of the LAN port of the AEBSn, and then use the AirPort Utility, in Manual Setup, to make these settings:
    1. Reserve a DHCP-provided IP address for the Shakespeer host device.
    Internet > DHCP tab
    o On the DHCP tab, click the "+" (Add) button to enter DHCP Reservations.
    o Description: <enter the desired description of the host device>
    o Reserve address by: MAC Address
    o Click Continue.
    o MAC Address: <enter the MAC (what Apple calls Ethernet ID if you are using wired or AirPort ID if wireless) hardware address of the host computer>
    o IPv4 Address: <enter the desired IP address>
    o Click Done.
    2. Setup Port Mapping on the AEBSn.
    Advanced > Port Mapping tab
    o Click the "+" (Add) button
    o Public UDP Port(s): 4000
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s): 4000
    o Click "Continue"

  • How to forward the request

    hi all,
    can somebody tell me how to forward the request from one context to another.
    thanks in adv.
    ritu

    Ritu, when you are talking about a different context are you talking about application, session and page contexts?? If yes, then I don't think you can forward a request to another context!
    If you are after a context (bean) from within your servlet, have you tried:
    mycontext = (MyContextClass)getServletContext().getAttribute("thenameofmycontext");HTH.

  • How to forward message to two different queue using jms proxy service

    Hi all,
    In my project I need to listen to one jms queue then forward the messages to two different queue.
    Now I already made one proxy for listening to the queue then pass it to another queue using business service, It works.
    But how to forward the messages to two different queue in same flow process using one proxy and bs??
    or any other way?
    Really thanks in advance.
    Regards,
    Kahlil

    Hi,
    I have a MQ queue and i created a Proxy to listen to the queue , but i dont see any activity in OSB logs ..how do i knw if OSB proxy is polling that MQ ( mq is the transport protocol that i am using ) .
    Thanks
    Prarthana.

  • JDev 10.1.2 [UIX]: After uploading a file, how to forward to next page?

    Hello guys,
    I've got a DataPage to upload a file, I followed the example in JDeveloper's help (Using a Controller in ADF UIX -> Uploading Files Using the UIX Servlet). The files are uploaded fine. But I can't figure out how to forward to the next page (or struts action) to process the file, after uploading it just returns to the upload page. Can anyone give me a hint?
    Thanks.
    Fer.

    Dear sir...
    i faced the same problem before, and yet no one helped me, however there is a workaround, though i do not think it should be done. however the steps are as follows:
    1- go to the code of the page.
    2- override the processupdatemodel method, adding only this line:
    actionContext.setActionForward("nextpage");
    3- draw a forward from the upload page into the next page.
    i hope this would help solving your problem.
    please if you find a better solution, post it here.
    good luck.

  • How to forward a jsp page in flex application ( when a button is clicked)

    i am a fresher to this FLEX 2.0 , i designed the UI part in
    flex, but when i click the submit button it has to forward to the
    JSP page to check against the valid user,password , so how to
    forward the page to jsp(i mean from flex to jsp) , if u can suggest
    me with an example, it will be easy for me, is Flex Data Service 2
    is necessary for this
    thanks for ur speedy reply, hopping to get the solution for
    this issue,
    sandeep

    Your JSP is, as far as Flex is concerned, just a data service
    which it will request and read its response. I'd suggest using
    <mx:HTTPService>. For example:
    <mx:HTTPService id="authorize" url="validate.jsp"
    fault="handleFault(event)" result="handleResult(event)">
    <mx:request>
    <userid>{username.text}</userid>
    <password>{password.text}</password>
    </mx:request>
    </mx:HTTPService>
    Flex creates the request:
    http://{server}.{port}{context.root}/validate.jsp?userid=fred&password=flintstone
    assuming that you have <mx:TextInput id="username" />
    and <mx:TextInput id="password" /> components.
    Your Submit button then does: authorize.send()
    (note: you can also pass the request parameters in the send()
    method - check the Flex docs on HTTPService).
    Flex will listen for the response from your JSP. Typically a
    JSP would respond with an HTML page, but you don't want to do that
    for Flex. Your JSP should produce either a simple string ("yes" or
    "no" or "error" etc) or an XML document.
    The handleResult method can examine the response and do
    what's necessary.

Maybe you are looking for

  • Hp Photosmart C6180 display is blank and no lights

    Hp photosmart C6180 display is blank and the console lights do not light up. windows 7 64bit, 12 gig i7 3400 2-60gb ssd,raid 0 ,3 sata 6 drives ,dvd i was having color issues not printing,magenta will not print,new cartridges tried, cleaned through h

  • Types of  Cubes

    hai pals,     i want  the information abt TYPES OF  INFOCUBES... and what are they.. and what is difference bettwen each other.. and when we  select that particular cubes...   thanks in advance.. @jay

  • SOA Suite on Vista

    I'm a developer using the SOA suite and I've just got a new powerful laptop with window vista ultimate on which I'd like to install SOA. On installation I get an version check error from the installer. When is the SOA Suite going to be release for Vi

  • What is the program in SRM to convert a shopping cart to be a purchase req?

    SRM gurus, What is the program in SRM to convert a shopping cart to be a purchase requisition? I intented to put some break points in some related programs/BADIs and to see if those program will be called when a shopping cart is converted to a purcha

  • Constructor of derived-class has to call constructor  of super-class?

    In java, constructor of derived-class has to call constructor of super-class? there is no way to omit this step?