是否应该有“iptables-restore < /etc/iptables.ipv4.nat" before an exit 0 statement?

问题描述 投票:0回答:1

我正在尝试通过 Raspberry Pi 2 和 Alfa Network 制造的 USB WiFi 适配器 AWUS036H 设置接入点。我正在遵循指南。该指南没有明确第 9 步是否“iptables-restore < /etc/iptables.ipv4.nat" (no quotes) is supposed to be before exit=0 on the same line or above it. It may or may not be the single faulty line of code in the system.

我已经尝试了两次,尽管我可能知道其他事情可能会把另外两次搞砸。我会在这篇文章发布的那天再试一次。如果此尝试不起作用,我将尝试不同的指南。对 exit 0 语句的澄清至关重要。 (P.S. 我对编码/开发/终端世界中的任何事情都真的很陌生。如果我需要澄清你的答案,请原谅我的无知。)

raspberry-pi exit-code access-point
1个回答
0
投票

查看链接文档后,我发现第 9 步中(部分)显示:

“...并在系统底部、exit 0 语句之前添加以下几行”

iptables-restore < /etc/iptables.ipv4.nat

我对此的解释是上面显示的文本应该独占一行,紧随其后的是包含“exit 0”语句的行。

© www.soinside.com 2019 - 2024. All rights reserved.