Re: Edit thrugoing packets?
Have you tried wireshark?
Also see iptables: man iptables
iptables is the tool for firewalls in Linux...Read iptables, I've read it and it might help you...
Luck.
Re: Edit thrugoing packets?
Yes, thanks. Ive started playing with iptables and things. im trying to do it with netsed. i got tcp traffic forwarded to a port for netsed, but when traffic flows, netsed goes crazy. It says it forwarded the packets untouched, but it just keeps saying that, and the only thing that changes from message to message is it now on the next port.
the steps i take are
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -j MASQUERADE
ifconfig eth1 192.168.0.1/24
and everything is fine. then
iptables -t nat -A PREROUTING -s 192.168.0.20 -p tcp -j REDIRECT --to 10101
netsed tcp 10101 0 0 s/search/replace
and then i reconnect to get the forwarding working, and netsed goes nutz.
in this post here, he says he got it working, with a bridge, ebtables, and iptables.
Im trying to do things with ports that change everytime i connect, except for the remote server. it uses the same port, but the ip changes between a few.
ill keep at it. Thanks
Re: Edit thrugoing packets?
Would you please post your setup (ethernet cards and networks)?