VPN kindof loses internet connection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • langmeg43
    Junior Member
    • Mar 2024
    • 1

    VPN kindof loses internet connection

    I am running Ubuntu 20.04 on a Virtual Private Server.
    I downloaded OpenVPN using the following commands:

    git clone https://github.com/Nyr/openvpn-install.git
    cd openvpn-install && chmod +x openvpn-install.sh && ./openvpn-install.sh
    ./openvpn-install.sh

    I also port forwarded to port 5555.

    After doing this, I no longer have access to the general internet (Discord, or accessing any websites) when connected to the VPN however, I do have internet access as I can SSH into the root of my server via CMD on my Windows machine running Windows 10 & have access to the things I am hosting on the port or listening on the port.

    In case this also helps, I port forwarded using the following commands:

    iptables -A PREROUTING -p tcp --dport 5555 -j DNAT --to 10.8.x.x
    iptables -t INPUT -A PREROUTING -p tcp --dport 5555 -j DNAT --to 10.8.x.x
    iptables -t FORWARD -A PREROUTING -p tcp --dport 5555 -j DNAT --to 10.8.x.x
    iptables -t nat -A PREROUTING -p tcp --dport 5555 -j DNAT --to 10.8.x.x
    iptables -t nat -A PREROUTING -p tcp --dport 5555 -j DNAT --to 10.8.x.x
    iptables -t nat -A PREROUTING -p tcp --dport 5555 -j DNAT --to 10.8.x.xx
    iptables-save
    service ufw stop
    iptables -t nat -A PREROUTING -p tcp --dport 5555 -j DNAT --to 10.8.x.xx
    iptables-save
    iptables -t nat -A PREROUTING -p tcp --dport 5555 -j DNAT --to 10.8.x.x
    iptables -t nat -A PREROUTING -p tcp --dport 5555-j DNAT --to 10.8.x.xx

    I dont have anything else installed on the Ubuntu server, it is a fresh install except for minor things such as git, apache2 and openvpn itself.
Working...
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎