26 May 2011

openbsd network

openvpn

  • cd /etc/openvpn
  • openvpn client.conf


firewall:

  • pfctl -n -f /etc/pf.conf


network restart

  • sh /etc/netstart em1    (atau)
  • sh /etc/netstart

alias ip
  • cat /etc/hostname.em1

defautl gw :   /etc/mygate


route
  • route show
  • route -n show
  • route -n show -inet
  • netstat -rn
route add:
  • route add -net 192.168.1.0/24 192.168.1.254


No comments:

Post a Comment

Terima kasih