This commit is contained in:
light
2018-09-16 11:16:52 +08:00
parent 795ad3e9c8
commit f117f1bbf2
8 changed files with 115 additions and 8 deletions
+6
View File
@@ -20,6 +20,12 @@ iptables -t 表名 <-A/I/D/R> 规则链名 [规则号] <-i/o 网卡名> -p 协
```
## 转发80端口到其他端口
``` bash
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 4000
```
## 设置静态ip
> sudo nano /etc/network/interfaces
+6
View File
@@ -0,0 +1,6 @@
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode Monitor
sudo ifconfig wlan0 up
## if rfkill error
rfkill unblock wifi
+4 -3
View File
@@ -7,8 +7,9 @@
``` bash
light ALL=(ALL) NOPASSWD: ALL
%admin ALL=(ALL) NOPASSWD: ALL
%sudo ALL=(ALL) NOPASSWD: ALL
%sudo ALL=(ALL:ALL) ALL
# 改成
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
```