disabling openvpn@server sudo update-rc.d openvpn disable sudo service openvpn status sudo systemctl status openvpn@server sudo systemctl status system-openvpn.slice Won’t work with systemctl disable openvpn or service openvpn stop.
Network
SmartPSS camera viewer
Connecting to a VPN when using UFW https://askubuntu.com/questions/572497/cant-connect-to-pptp-vpn-with-ufw-enabled-on-ubuntu-14-04-with-kernel-3-18 sudo ufw allow proto gre from 86.121.33.88 You might also need to put into /etc/modules-load.d/pptp.conf: nf_conntrack_proto_gre nf_conntrack_pptp
setup your own linux based router
What is all about short story … This post will help you to configure a linux PC in order to function as a router too. long story … If you like me have a very low energy consumption PC (a […]
Linux network information
DNS address assigned by DHCP nmcli device show eth0 | grep DNS Gateway address assigned by DHCP nmcli device show eth0 | grep GATEWAY Show active and ofline connections nmcli connection show Load configuration files nmcli con reload nmcli con […]
iptables
iptables processing steps (original image link) Redirect eth0:3240 to 127.0.0.1:32400 sudo sysctl -w net.ipv4.ip_forward=1 sudo sysctl -a | grep ‘net.ipv4.ip_forward’ sysctl net.ipv4.ip_forward -> this reads the value sudo sysctl -w net.ipv4.conf.eth0.route_localnet=1 sudo sysctl -a | grep ‘net.ipv4.conf.eth0.route_localnet’ # you’ll need […]
Ufw (uncomplicated firewall)
documentation https://help.ubuntu.com/lts/serverguide/firewall.html http://manpages.ubuntu.com/manpages/xenial/en/man8/ufw.8.html http://manpages.ubuntu.com/manpages/xenial/en/man8/ufw-framework.8.html important files /etc/ufw/user.rules Uncomplicated Firewall # https://help.ubuntu.com/community/UFW sudo ufw show added sudo ufw status verbose sudo ufw show listening sudo ufw limit ssh sudo ufw allow 80 sudo ufw allow 443 sudo ufw allow 32400 sudo […]
ssh, http and https multiplexing
This is about how to have the ssh and http(s) server share the same port (e.g. 80 or 443 port). This is really cool :). # Used sources: # http://yalis.fr/cms/index.php/post/2014/02/22/Multiplex-SSH-and-HTTPS-on-a-single-port # http://blog.cppse.nl/apache-proxytunnel-ssh-tunnel # http://serverfault.com/questions/355271/ssh-over-https-with-proxytunnel-and-nginx # http://tyy.host-ed.me/pluxml/article4/port-443-for-https-ssh-and-ssh-over-ssl-and-more # http://ipset.netfilter.org/iptables.man.html # http://ipset.netfilter.org/iptables-extensions.man.html […]
Test network speed/performance
test performance with iperf from client to server options: -p, –port n set server port to listen to n (default 5001) start server: iperf –format m –interval 2 -s then start client: iperf –format m –interval 2 -t 10 -c […]