gui port used by openvpn....

Discussion in 'Tomato Firmware' started by risq, Apr 12, 2009.

  1. risq

    risq Addicted to LI Member

    [Solved] gui port used by openvpn....

    i did something really really stupid, believe it or not:

    i used the tomato openvpn mod and changed the openvpn port to 443 ... (https port)..

    result: no gui anymore since i used https gui

    i tried to change the openvpn port in /etc/openvpn/server1/config.ovpn but it always is overwritten ...dont know by which script

    can somebody tell me either

    - change the gui to http on port 80
    - how to restart the gui manually
    - change the vpn port persistently

    ..on command line without gui access.

    thx in advance

  2. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    nvram set vpn_server1_port="1194"
    nvram commit
    However, there have been people that have been able to run both OpenVPN and HTTPS web gui on the same port (443) using the
    port-share localhost:8443
    and changing the HTTPS port to 8443. Then, the OpenVPN server will listen on that port and forward any non-VPN traffic to the HTTPS port.
  3. risq

    risq Addicted to LI Member

    thx for the quick answer, i just found out about the nvram concept, sorry, im a tomato newbie, gui is back

    where do i put the port-share line ?! that would normaly a openserver conf command, but i dont know where to put it in the tomato...
  4. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    In the VPN Server "Custom Configuration" field. And, to clarify, you'll want to change the internal https port to 8443 and change the VPN port to 443. You don't even need to enable external https access, as OpenVPN acts as a port forwarder in this case.

    And, to avoid the trouble you ran into before, I suggest you enable http & https access while you are trying it out so you will at least have http access if it doesn't work.
  5. risq

    risq Addicted to LI Member

    works perfectly, thx . marked as [Solved]
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice