Showing posts with label network. Show all posts
Showing posts with label network. Show all posts

Thursday, August 16, 2012

nmcli without Network Manager GUI

nmcli 

nmcli con down id VPN_CONN_NAME
nmcli con up id VPN_CONN_NAME
nmcli con

automation with nmcli

network-manager restart

sudo service network-manager restart


To automatically connect VPN.

put "nmcli con up id VPN_CONN_NAME" in .profile (upon login)

Sunday, September 11, 2011

Packet crafting and sniffing with Python extensions

  • libpcap: sudo apt-get install libpcap-dev
  • download and install pypcap, dpkt, dnet
  • pypcap 's installation is tricky: download the pyrex and recompile the pcap.pyx file will work. Furthermore, use Makefile instead of setup.py seems fixed issues.