Network Connection Profiling- Ubuntu
I am looking for configuration which enables the laptop to identify the network i.e. Office LAN, VPN and Home(Internet) when connected to them respectively. Also required is it opens and blocks certain ports based on the connectivity.
For example i need to enable SSH while i am on office network and block it once i am over the internet.
Is there any way i can get hold of a script around Iptables?