Доброго времени суток! Имеется машина с
Ubuntu 18.04 с двумя сетевыми интерфейсами.
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fd59:be7:c0bc:0:2a87:baff:fe92:d08e prefixlen 64 scopeid 0x0<global>
inet6 fe80::2a87:baff:fe92:d08e prefixlen 64 scopeid 0x20<link>
ether 28:87:ba:92:d0:8e txqueuelen 1000 (Ethernet)
RX packets 7596 bytes 1414025 (1.4 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12942 bytes 1548951 (1.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::76d0:2bff:fea3:1e56 prefixlen 64 scopeid 0x20<link>
ether 74:d0:2b:a3:1e:56 txqueuelen 1000 (Ethernet)
RX packets 19788 bytes 12138305 (12.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 19834 bytes 2071775 (2.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 17
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 87 bytes 18931 (18.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 87 bytes 18931 (18.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ip route
└─> ip route
default via 192.168.1.1 dev eth0
default via 192.168.0.1 dev eth1 onlink
192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.10
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.10
iptables -L -n -v
Chain INPUT (policy ACCEPT 5441 packets, 1073K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- eth1 * 0.0.0.0/0 0.0.0.0/0 udp dpt:51413
16 3577 DROP all -- eth1 * 0.0.0.0/0 0.0.0.0/0
Решил вывести на eth1 transmission. в settings.json сделал:
"bind-address-ipv4": "192.168.0.10"
но не работает... если-же сменить параметр на 192.168.1.10 - все работает