OpenVPN does not work with Gateway, but does with bridge

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















i want use openvpn on Linux Mint. When i tries the VPN connection (i am client) i writes these commands :



sudo openvpn --config file.tcp.ovpn


then my authorization



Enter Auth Username: user_xy


and



Enter Auth Password: *********


everything seems fine and terminal prints "Initialization Sequence Completed".



I found out if my router is in "Bridge mode" the openVPN works correctly, but if i set the "Gateway mode" openvpn does not work.
I also use VPN application on my mobile phone (it is not openVPN but "TURBO-VPN") and there all works great with both router mode.
I have requirement that I need the gateway mode on my router because of NAT.



additional information :



The modes on router set over http here :



enter image description here










share|improve this question






















  • In the router you should select "Gateway". Than read the contents of you file less file.tcp.ovpn. You need to find out the Protocol Type - in your case TCP i guess - and the Protocol Port. When u have these informaiton you have to create firewall / nat rules in your router.

    – AlexOnLinux
    Feb 10 at 15:57















0















i want use openvpn on Linux Mint. When i tries the VPN connection (i am client) i writes these commands :



sudo openvpn --config file.tcp.ovpn


then my authorization



Enter Auth Username: user_xy


and



Enter Auth Password: *********


everything seems fine and terminal prints "Initialization Sequence Completed".



I found out if my router is in "Bridge mode" the openVPN works correctly, but if i set the "Gateway mode" openvpn does not work.
I also use VPN application on my mobile phone (it is not openVPN but "TURBO-VPN") and there all works great with both router mode.
I have requirement that I need the gateway mode on my router because of NAT.



additional information :



The modes on router set over http here :



enter image description here










share|improve this question






















  • In the router you should select "Gateway". Than read the contents of you file less file.tcp.ovpn. You need to find out the Protocol Type - in your case TCP i guess - and the Protocol Port. When u have these informaiton you have to create firewall / nat rules in your router.

    – AlexOnLinux
    Feb 10 at 15:57













0












0








0








i want use openvpn on Linux Mint. When i tries the VPN connection (i am client) i writes these commands :



sudo openvpn --config file.tcp.ovpn


then my authorization



Enter Auth Username: user_xy


and



Enter Auth Password: *********


everything seems fine and terminal prints "Initialization Sequence Completed".



I found out if my router is in "Bridge mode" the openVPN works correctly, but if i set the "Gateway mode" openvpn does not work.
I also use VPN application on my mobile phone (it is not openVPN but "TURBO-VPN") and there all works great with both router mode.
I have requirement that I need the gateway mode on my router because of NAT.



additional information :



The modes on router set over http here :



enter image description here










share|improve this question














i want use openvpn on Linux Mint. When i tries the VPN connection (i am client) i writes these commands :



sudo openvpn --config file.tcp.ovpn


then my authorization



Enter Auth Username: user_xy


and



Enter Auth Password: *********


everything seems fine and terminal prints "Initialization Sequence Completed".



I found out if my router is in "Bridge mode" the openVPN works correctly, but if i set the "Gateway mode" openvpn does not work.
I also use VPN application on my mobile phone (it is not openVPN but "TURBO-VPN") and there all works great with both router mode.
I have requirement that I need the gateway mode on my router because of NAT.



additional information :



The modes on router set over http here :



enter image description here







openvpn vpn bridge gateway






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 28 at 10:31









S3jp4kCZES3jp4kCZE

12




12












  • In the router you should select "Gateway". Than read the contents of you file less file.tcp.ovpn. You need to find out the Protocol Type - in your case TCP i guess - and the Protocol Port. When u have these informaiton you have to create firewall / nat rules in your router.

    – AlexOnLinux
    Feb 10 at 15:57

















  • In the router you should select "Gateway". Than read the contents of you file less file.tcp.ovpn. You need to find out the Protocol Type - in your case TCP i guess - and the Protocol Port. When u have these informaiton you have to create firewall / nat rules in your router.

    – AlexOnLinux
    Feb 10 at 15:57
















In the router you should select "Gateway". Than read the contents of you file less file.tcp.ovpn. You need to find out the Protocol Type - in your case TCP i guess - and the Protocol Port. When u have these informaiton you have to create firewall / nat rules in your router.

– AlexOnLinux
Feb 10 at 15:57





In the router you should select "Gateway". Than read the contents of you file less file.tcp.ovpn. You need to find out the Protocol Type - in your case TCP i guess - and the Protocol Port. When u have these informaiton you have to create firewall / nat rules in your router.

– AlexOnLinux
Feb 10 at 15:57










1 Answer
1






active

oldest

votes


















0














You have to create NAT rules on your router. Looking on this scenario from internet perspective, create forward port TCP/UDP 1194 TO your computer inside local network (LAN). You need to tell your router, what to actually do with such traffic. That would be something like:



far OpenVPN peer -> internet -> your router -> forward UDP/TCP port 1194 packets to -> your computer inside LAN (eg. 192.168.1.5) 


Make also sure that such traffic is allowed on the firewall (if is enabled).






share|improve this answer






















    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%2f497170%2fopenvpn-does-not-work-with-gateway-but-does-with-bridge%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














    You have to create NAT rules on your router. Looking on this scenario from internet perspective, create forward port TCP/UDP 1194 TO your computer inside local network (LAN). You need to tell your router, what to actually do with such traffic. That would be something like:



    far OpenVPN peer -> internet -> your router -> forward UDP/TCP port 1194 packets to -> your computer inside LAN (eg. 192.168.1.5) 


    Make also sure that such traffic is allowed on the firewall (if is enabled).






    share|improve this answer



























      0














      You have to create NAT rules on your router. Looking on this scenario from internet perspective, create forward port TCP/UDP 1194 TO your computer inside local network (LAN). You need to tell your router, what to actually do with such traffic. That would be something like:



      far OpenVPN peer -> internet -> your router -> forward UDP/TCP port 1194 packets to -> your computer inside LAN (eg. 192.168.1.5) 


      Make also sure that such traffic is allowed on the firewall (if is enabled).






      share|improve this answer

























        0












        0








        0







        You have to create NAT rules on your router. Looking on this scenario from internet perspective, create forward port TCP/UDP 1194 TO your computer inside local network (LAN). You need to tell your router, what to actually do with such traffic. That would be something like:



        far OpenVPN peer -> internet -> your router -> forward UDP/TCP port 1194 packets to -> your computer inside LAN (eg. 192.168.1.5) 


        Make also sure that such traffic is allowed on the firewall (if is enabled).






        share|improve this answer













        You have to create NAT rules on your router. Looking on this scenario from internet perspective, create forward port TCP/UDP 1194 TO your computer inside local network (LAN). You need to tell your router, what to actually do with such traffic. That would be something like:



        far OpenVPN peer -> internet -> your router -> forward UDP/TCP port 1194 packets to -> your computer inside LAN (eg. 192.168.1.5) 


        Make also sure that such traffic is allowed on the firewall (if is enabled).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 28 at 11:30









        Radek RadekRadek Radek

        514




        514



























            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%2f497170%2fopenvpn-does-not-work-with-gateway-but-does-with-bridge%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

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay