vorticredit.blogg.se

Allow ssh through airvpn
Allow ssh through airvpn










allow ssh through airvpn

idk why, but once disabled seemingly all made changes are reset. If you encounter any Issue check that your Server would also be visible to the internet without the VPN enabled (of course you have to forward the port the usual way then). So if you set the VPN IP and forwarded port in your client which is in the same network as your Server then you wont get any Connection. Keep one thing in mind: You cannot connect from your VPN network to your VPN network. If you did everything right you now see a Open port, if you dont then make sure your Server is running and listening to the port specified in step 9. Once done open up a port check tool like and check the port from Step 2 Select the first line from above you just changed, copy it and paste it into the PuTTy console (rightclick pastes). So in the end you changed the interace "tun1" the "destIP" and the "port". Not the port from Step 2, atleast not if its not the same as your server port. Lastly replace every "port" to the port your server is listeing too. In the lines above now replace every "destIP" to your computers ip. If you dont know your IP open up the console, (Win + R, type cmd and hit enter), type "ipconfig" and hit enter. Next step is to define the IP of the computer you have the server running on which you wanna open up to the internet. In each and every line you see "tun1" change that to what you found in step 8. Iptables -t nat -I PREROUTING -i tun1 -p udp -dport port -j DNAT -to-destination destIPĬopy them to a text editor. Iptables -t nat -I PREROUTING -i tun1 -p tcp -dport port -j DNAT -to-destination destIP

allow ssh through airvpn

Iptables -I FORWARD -i tun1 -p tcp -d destIP -dport port -j ACCEPT Iptables -I FORWARD -i tun1 -p udp -d destIP -dport port -j ACCEPT Now take a look at down below you see a couple of lines

allow ssh through airvpn

Take a note which of both your router shows you.ĩ. Look up if you can see tun1 or tun11 in the list. On the very right you see "iface" which stands for interface. Once logged in you see something like this: Switch back to your Router Interface in the Web browser. If PuTTy could connect to your Router over SSH it will ask you for a Username and afterwards your password, these are the same as these when you open the router interface through your browser. Within the field "Host name or IP adress" type the IP adress of your router (usually 192.168.1.1) and hit the "Open" Button at the Bottom. Select everything and Copy it to the field next to "Authorized Keys" Now switch back to your text editor where you have your. Keep them as default (you can change them later if you like). Go to "Administration" -> "System" and enable "Enable SSH".Ī couple more options will show up. Open your Asus Router Interface and go to "VPN" -> "VPN Client" and set the Option "Inbound Firewall" to "Allow". ppk file with a text editor, we need the content further down.ĥ. Once generated click the "Save private key" button (dont set a password). Startup PuTTyGen.exe and click the button "Generate" (it will ask you to move a little over the window with your mouse).

Allow ssh through airvpn download#

Next step is to download PuTTy and PuTTyGen ( ) because we need to access the router over SSHĤ. Also make sure the VPN is working and Connectedģ.












Allow ssh through airvpn