Skip to content

Commit

Permalink
Update nat service to use latest version of dnat executable
Browse files Browse the repository at this point in the history
  • Loading branch information
liuganghuan committed Jan 5, 2024
1 parent 2b1bd1f commit da9d379
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ yum install -y nftables
```shell
# 必须是root用户
# sudo su

systemctl stop nat
# 下载可执行文件
wget -O /usr/local/bin/nat http://cdn.arloor.com/tool/dnat
chmod +x /usr/local/bin/nat
curl -sSLf https://github.com/arloor/nftables-nat-rust/releases/download/v1.0.0/dnat -o /tmp/nat
install /tmp/nat /usr/local/bin/nat

# 创建systemd服务
cat > /lib/systemd/system/nat.service <<EOF
Expand Down Expand Up @@ -92,7 +90,7 @@ SINGLE,49999,59999,baidu.com
RANGE,50000,50010,baidu.com
EOF

systemctl start nat
systemctl restart nat
```

**配置文件说明**
Expand Down

0 comments on commit da9d379

Please sign in to comment.