Command

Reference:

  1. 鳥哥的 Linux 私房菜: iptables

1. iptables:

List filter table rule:

iptables -L -n

Add rule:

iptables -I INPUT **1** -j ACCEPT -i **lan.1** -p **tcp** --dport **30000**

delete rule:

iptables -D INPUT -j ACCEPT -i **lan.1** -p **tcp** --dport **30000**

Other:

  1. netstat -ant
  2. route -n
  3. ifconfig [interface]
  4. ps |grep xxx
  5. cat/proc/"process ID"/status : 觀察process記憶體使用狀況

results matching ""

    No results matching ""