update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user