First page Back Continue Last page Overview Graphics

Marcamos paquetes para enrutado

  • #------------------------------------------------------------------------------
  • # RA canviats VNC X-Server RTP/UDP RTSP/UDP MSN/TCP MSN/UDP
  • RT_RANGS="55000:56000 5800:5910 6000:6010 16384:32767 6970:7170 6891:6901 2001:2120"
  • #------------------------------------------------------------------------------
  • for RT in $RT_RANGS
  • do
  • for TP in $PROTOS
  • do
  • iptables -A PREROUTING -t mangle -i $IF -p $TP -s $USERS_NET \
  • --dport $RT -j MARK --set-mark $MRT
  • done
  • done
  • #------------------------------------------------------------------------------
  • # Protocols que han de funcionar a temps real
  • RT_PROTO="50 51" # IPSec ESP,AH
  • #------------------------------------------------------------------------------
  • for P in $RT_PROTO
  • do
  • iptables -A PREROUTING -t mangle -i $IF -p $P -s $USERS_NET -j MARK \
  • --set-mark $MRT
  • done

    Notes: