[FUGSPBR] Source based routing ipfw
Bio )+(azarD
bio em bsd-unix.com.br
Sáb Fev 1 00:30:16 BRST 2003
$IPFW add skipto REGRA all from any to any ipoptions lsrr
$IPFW add SKIPTO REGRAall from any to any ipoptions ssrr
#ipfw
#usage: ipfw [options]
# [pipe] flush
# add [number] rule
# [pipe] delete number ...
# [pipe] list [number ...]
# [pipe] show [number ...]
# zero [number ...]
# resetlog [number ...]
# pipe number config [pipeconfig]
# rule: [prob <match_probability>] action proto src dst extras...
# action:
# {allow|permit|accept|pass|deny|drop|reject|unreach code|
# reset|count|skipto num|divert port|tee port|fwd ip|
# pipe num} [log [logamount count]]
# proto: {ip|tcp|udp|icmp|<number>}
# src: from [not] {me|any|ip[{/bits|:mask}]} [{port[-port]}, [port], ...]
# dst: to [not] {me|any|ip[{/bits|:mask}]} [{port[-port]}, [port], ...]
# extras:
# uid {user id}
# gid {group id}
# fragment (may not be used with ports or tcpflags)
# in
# out
# {xmit|recv|via} {iface|ip|any}
# {established|setup}
# tcpflags [!]{syn|fin|rst|ack|psh|urg}, ...
# ipoptions [!]{ssrr|lsrr|rr|ts}, ...
# tcpoptions [!]{mss|window|sack|ts|cc}, ...
# icmptypes {type[, type]}...
# keep-state [method]
# pipeconfig:
# {bw|bandwidth} <number>{bit/s|Kbit/s|Mbit/s|Bytes/s|KBytes/s|MBytes/s}
# {bw|bandwidth} interface_name
# delay <milliseconds>
# queue <size>{packets|Bytes|KBytes}
# plr <fraction>
# mask {all| [dst-ip|src-ip|dst-port|src-port|proto] <number>}
# buckets <number>}
# gid {group id}
# fragment (may not be used with ports or tcpflags)
Andre Luis Quintaes Guimaraes wrote:
> Alguem sabe como fazer o ipfw ou alguma outra coisa no fbsd 4.5 dar
>forward de pacotes para uma interface baseado na origem dos pacotes?
>O ipfw fwd me permite apenas dar o forward para um gateway e nao uma
>interface!
>
>_______________________________________________________________
>Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
>Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
>
>
>
>
>
_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
Mais detalhes sobre a lista de discussão freebsd