Firefly ROC-RK3308B-CC-PLUS 防火墙端口转发功能没有生效
本帖最后由 suprsnd 于 2022-10-3 18:10 编辑root@firefly:~# ffgo version
OS: Ubuntu 18.04.5 LTS
MODEL: Firefly ROC-RK3308B-CC-PLUS analog mic board
FIREFLY: v2.04-2-g633f927
DATE: 20210322-1724
KERNEL:Linux version 4.4.143 (huangjf@tchip16) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #51 SMP PREEMPT Tue Dec 21 15:59:13 CST 2021
root@firefly:~# sysctl -p
net.ipv4.ip_forward = 1
eth1: connected to Wired connection 2
"Realtek USB 10/100 LAN"
ethernet (r8152), 40:FF:10:22:E0:D6, hw, mtu 1500
ip4 default
inet4 192.168.8.1/24
route4 192.168.8.0/24
route4 0.0.0.0/0
inet6 fe80::1467:382f:e85:fbf0/64
route6 ff00::/8
route6 fe80::/64
route6 fe80::/64
eth0: connected to Wired connection 1
"eth0"
ethernet (rk_gmac-dwmac), 5E:CD:B1:CF:14:11, hw, mtu 1500
inet4 192.168.10.50/24
route4 192.168.10.0/24
inet6 fe80::dc90:8505:cfb5:7552/64
route6 ff00::/8
route6 fe80::/64
route6 fe80::/64
root@firefly:~# iptables -t nat--list
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp--anywhere 192.168.8.1 tcp dpt:8000 to:192.168.10.240:8000
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all--192.168.10.0/24 anywhere to:192.168.8.1
root@firefly:~# ss -anlt
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 0 127.0.0.1:5037 0.0.0.0:*
LISTEN 0 0 127.0.0.53:53 0.0.0.0:*
LISTEN 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 0 0 *:22 *:*
以上是按照2. 网络配置 — Firefly Wiki (t-firefly.com)来配置,好像没有起效,希望工程师能够指点一下
目前手头共有大概30左右的设备,希望能改成这个用途,希望问题能得到反馈
页:
[1]