Command
Reference:
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:
- netstat -ant
- route -n
- ifconfig [interface]
- ps |grep xxx
- cat/proc/"process ID"/status : 觀察process記憶體使用狀況