Re: Question about using SSH-tunnel / Frage zum Benutzen eines SSH-Tunnels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Read 'man iptables' again and search for REDIRECT. REDIRECT is a target,
not a chain so the above rule is incorrect. Example:

$ipt -t nat -A PREROUTING -p tcp -d<dest_ip>  -j REDIRECT --to-ports
<local_port>
if i do this, it does not work:
iptables -A PREROUTING -t nat -p tcp -d 65.18.193.12 --dport 15000 -j REDIRECT --to 127.0.0.1:15000
answer:
iptables v1.4.10: REDIRECT: Bad value for "--to-ports" option: "127.0.0.1:15000"
Try `iptables -h' or 'iptables --help' for more information.

how can i find out, if a programm uses tcp or udp protocoll for connection?
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux