Interface 桥接接口和尾标”;“覆盆子”;

Interface 桥接接口和尾标”;“覆盆子”;,interface,vpn,bridge,Interface,Vpn,Bridge,我正在尝试将我的苹果电视连接到我的家庭网络,因为苹果电视不支持vpn,我想买一个树莓,在上面设置tailscale,并桥接eth0和eth1,这样苹果电视就可以获得vpn连接 我所做的 sudo brctl addbr br0 sudo brctl addif br0 eth0 eth1 nano /etc/dhcpcd.conf denyinterfaces eth0 eth1 nano /etc/network/

我正在尝试将我的苹果电视连接到我的家庭网络,因为苹果电视不支持vpn,我想买一个树莓,在上面设置tailscale,并桥接eth0和eth1,这样苹果电视就可以获得vpn连接

我所做的

sudo brctl addbr br0 sudo brctl addif br0 eth0 eth1 nano /etc/dhcpcd.conf denyinterfaces eth0 eth1 nano /etc/network/interfaces auto br0 iface br0 inet dhcp bridge_ports eth0 eth1 sudo iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE sudo iptables -A FORWARD -i br0 -o tailscale0 -j ACCEPT sudo iptables -A FORWARD -i tailscale0 -o br0 -j ACCEPT sudo iptables -A INPUT -i tailscale0 -m state --state RELATED,ESTABLISHED -j ACCEPT i add 1 for the table sudo ip route add default dev tailscale0 table vpnout sudo ip route add 192.168.0.0/24 dev br0 table vpnout sudo ip rule add from 192.168.0.0/24 table vpnout sudo ip rule add to 1192.168.0.0/24 table vpnout what happened is that i can get internet connection on eth1 but not routing tailscale traffic through eth1 ifconfig br0: flags=4163 mtu 1500 inet 192.168.0.107 netmask 255.255.255.0 broadcast 192.168.0.255 inet6 fe80::20e:c6ff:fe56:48a5 prefixlen 64 scopeid 0x20 ether 00:0e:c6:56:48:a5 txqueuelen 1000 (Ethernet) RX packets 6485 bytes 1781523 (1.6 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1717 bytes 247950 (242.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth0: flags=4163 mtu 1500 ether b8:27:eb:88:2b:90 txqueuelen 1000 (Ethernet) RX packets 8128 bytes 2260563 (2.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 3001 bytes 418999 (409.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth1: flags=4163 mtu 1500 ether 00:0e:c6:56:48:a5 txqueuelen 1000 (Ethernet) RX packets 1280 bytes 152865 (149.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4534 bytes 1581066 (1.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 2 bytes 78 (78.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2 bytes 78 (78.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 tailscale0: flags=4305 mtu 1280 inet 100.108.x.x netmask 255.255.255.255 destination 100.108.x.x inet6 fe80::7e1e:4058:6116:d2f5 prefixlen 64 scopeid 0x20 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC) RX packets 16 bytes 1486 (1.4 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 24 bytes 1694 (1.6 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 sudo brctl addbr br0 sudo brctl addif br0 eth0 eth1 nano/etc/dhcpcd.conf denyinterfaces eth0 eth1 nano/etc/网络/接口 自动br0 iface br0 inet dhcp 网桥_端口eth0 eth1 sudo iptables-t nat-A后路由-o tailscale0-j伪装 sudo iptables-A FORWARD-i br0-o tailscale0-j ACCEPT sudo iptables-A向前-i尾标0-o br0-j接受 sudo iptables-A输入-i tailscale0-m状态-状态相关,已建立-j接受 我为表格加1 sudo ip路由添加默认的dev tailscale0表vpnout sudo ip路由添加192.168.0.0/24 dev br0表vpnout sudo ip规则添加自192.168.0.0/24表vpnout sudo ip规则添加到1192.168.0.0/24表vpnout 发生的事情是,我可以在eth1上获得internet连接,但不能通过eth1路由大规模流量 命令 br0:flags=4163 mtu 1500 inet 192.168.0.107网络掩码255.255.255.0广播192.168.0.255 inet6 fe80::20e:c6ff:fe56:48a5预桥64作用域ID 0x20 乙醚00:0e:c6:56:48:a5 txqueuelen 1000(以太网) 接收数据包6485字节1781523(1.6 MiB) 接收错误0丢弃0超出0帧0 发送数据包1717字节247950(242.1kib) 发送错误0丢弃0溢出0载波0冲突0 eth0:flags=4163 mtu 1500 以太b8:27:eb:88:2b:90 txqueuelen 1000(以太网) 接收数据包8128字节2260563(2.1 MiB) 接收错误0丢弃0超出0帧0 发送数据包3001字节418999(409.1kib) 发送错误0丢弃0溢出0载波0冲突0 eth1:flags=4163 mtu 1500 乙醚00:0e:c6:56:48:a5 txqueuelen 1000(以太网) 接收数据包1280字节152865(149.2千字节) 接收错误0丢弃0超出0帧0 发送数据包4534字节1581066(1.5 MiB) 发送错误0丢弃0溢出0载波0冲突0 低:标志=73 mtu 65536 inet 127.0.0.1网络掩码255.0.0.0 inet6::1前缀轴128作用域ID 0x10 循环txqueuelen 1000(本地环回) 接收数据包2字节78(78.0 B) 接收错误0丢弃0超出0帧0 发送数据包2字节78(78.0 B) 发送错误0丢弃0溢出0载波0冲突0 尾标0:标志=4305 mtu 1280 inet 100.108.x.x网络掩码255.255.255.255目标100.108.x.x inet6 fe80::7e1e:4058:6116:d2f5预桥64作用域ID 0x20 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500(unspec) 接收数据包16字节1486(1.4千字节) 接收错误0丢弃0超出0帧0 发送数据包24字节1694(1.6千字节) 发送错误0丢弃0溢出0载波0冲突0 有什么建议吗