is it possible to route upload to another device with ip route i did that for download using these command and it works
ip link add dev dw type veth peer dwpeer
ip link set dev dw up
ip link set dev dwpeer up
brctl addif br-lan dwpeer
ip link set dwpeer promisc on
ip route add default dev dw table 100
ip rule add fwmark 100 table 100 priority 100
iptables -t mangle -F PREROUTING
iptables -t mangle -A PREROUTING -p 17 --sport 443 -j MARK --set-mark 100
iptables -t mangle -A PREROUTING -p 6 --sport 443 -j MARK --set-mark 100
i want to do the same but for upload and piroity in ip route 0 mean serve first ?
i mean for upload is egress of wan interface, and i changed pirority of local to 32000 my question is if i typed this command ip rule add fwmark 126 table 126 priority 1 and i put certin marked traffic with iptables let say this iptables -t mangle -A PREROUTING -p 17 --dport 443 -m comment --comment youtube-test -j MARK --set-mark 126
what i'm trying to do is to create veth interface and route marked packet by iptables to that interface i successfully do that with ingress side with these commands
ip link add dev dw type veth peer dwpeer
ip link set dev dw up
ip link set dev dwpeer up
brctl addif br-lan dwpeer
ip link set dwpeer promisc on
ip route add default dev dw table 100
ip rule add fwmark 100 table 100 priority 100
iptables -t mangle -F PREROUTING
iptables -t mangle -A PREROUTING -p 17 --sport 443 -m comment --comment youtube-test -j MARK --set-mark 100
i want to do that but for egress side the oppiste side