aide199 0 Posted ... Hi, can someone please help me with port forwarding. I use a Vodafone sim in my sim router and all is good apart from the fact that Vodafone use CGNAT and block port forwarding. I have a Ubuntu server from which I am trying to setup Nextcloud Server and need to forward the port 80 & 443 to my local ip address od 192.168.0.3 so that I can access it outside of my internal network. Can someone please give me step by step (easy) instructions on how to do the using Airvpn port forwarding Thanks in advance Quote Share this post Link to post
ss11 22 Posted ... You cannot forward ports of lower range than 1024. Since it's a shared service, you can't forward what ports you want, but you can forward what ports you find free or are randomly assigned to you. I assume you don't want to run the VPN client on the router, and run it on the Ubuntu server. In this case, you do not care about CGNAT and the router, and the 192.168 internal address. the port forwarding happens from the public internet (AirVPN server public IP address) to your server running Nextcloud. You can go to client area -> port forwarding , get a random port and redirect it to port 443 on your local machine. Make sure the webserver listens on all interfaces. Then you connect to your server from the public internet by using $yourname.airdns.org:$randomportassigned . If you setup the vpn on your router (which I doubt is what you asked) you need to do some iptables firewalls to further redirect traffic from the VPN to 192.168.0.3. It's not impossible though. Quote Share this post Link to post
-IceMan- 1 Posted ... SS11 I have setup Wireguard protocol on my OpenWrt One Router and I need you to guide me on LUCI Gui step by step how to do iptables firewalls to further redirect traffic from the VPN wireguard tunnel to 192.168.1.85:xxxx Best regards ! Quote Share this post Link to post
Staff 10123 Posted ... Hello! Updated and working solution from a ticket by the support team: Quote Please determine the local IP address of the machine running the listening program (for example the NVR server) and add the forwarding rules on the OpenWRT router Luci panel according to our previous message. Do it both for TCP and UDP. We paste the relevant part here for your comfort: Inside Luci's Network > Firewall > Port forward panel please click the Add button to create a new port forwarding rule. Then, proceed to configure Port Forwarding: Name: Give your rule a descriptive name you like Protocol: Select the protocol for the port you're forwarding (TCP & UDP) External Port: Enter the external port number that is forwarded from the VPN server, i.e. the port your account had been assigned on the AirVPN account port panel Internal IP Address: Enter the IP address (in your local network) of the final destination device (the device that shares the VPN traffic and where the listening program runs). Internal Port: Enter the port number on the final device that you want to forward the traffic to (IMPORTANT: for p2p software all the port numbers must be the same) Interface: Select the network interface which the VPN traffic is coming from, for example wg0 Kind regards AirVPN Support Team Kind regards Quote Share this post Link to post