Code:
#!/bin/bash
iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 21 -j MARK --set-mark 1
echo 201 ftp.out >> /etc/iproute2/rt_tables
ip rule add fwmark 1 table ftp.out
ip rule ls
/sbin/ip route add default via 10.11.1.23 dev ppp1 table ftp.out
#!/bin/bash
iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 21 -j MARK --set-mark 1
echo 201 ftp.out >> /etc/iproute2/rt_tables
ip rule add fwmark 1 table ftp.out
ip rule ls
/sbin/ip route add default via 10.11.1.23 dev ppp1 table ftp.out
Medjutim to mi ne radi a i ne pije mi vodu
