Jump to content

Recommended Posts

Posted

pret vsem.

hochiu zdelat' routing based on ports..

dla etogo ja pomechaiju paket i probuju ego kidat' na ISP

no vot enpoluchiaetsa..

 

ja delaju tak:

iptables -I PREROUTING -i eth2 -s 192.168.1.83 -t mangle -p tcp --dport 7000 -j MARK --set-mark 7000

echo "201 irc.out" >> /etc/iproute2/rt_tables

ip rule add fwmark 7000 table irc.out

ip route add default via 192.168.254.254 dev eth0 table irc.out

 

mozhet ktoto videt oshibki?

spasibo..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...