linux - How to open some ports on Ubuntu? -


i know little linux.today create vpn server on ubuntu according https://github.com/philplckthun/setup-simple-ipsec-l2tp-vpn when finish installation. use iphone connect ipsect vpn,bur shows vpn server has no response.

the github document shows

ports 1701, 500 , 4500 must opened vpn work!

so have tried open these ports on ubuntu server. use "iptables" command open these ports.but failed.maybe don't known how use command correctly。so want know how can open ports on ubuntu server? , if ports have been opened successfully, can proved windows cmd window through telnet port?

ubuntu these days comes ufw - uncomplicated firewall. ufw easy-to-use method of handling iptables rules.

try using command allow port

sudo ufw allow 1701 

to test connectivity, try shutting down vpn software (freeing ports) , using netcat listen, this:

nc -l 1701 

then use telnet windows host , see shows on ubuntu terminal. can repeated each port you'd test.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -