netsed 1.00a released !

After some work here it is : netsed 1.00a !!

Basically this version is an architecture rewrite to add UDP support and remove the use of fork().

I’m pretty happy with the current feature set and code state so I think it will stay like that for a moment.

However feel free to test it and report bugs.

netsed release page.

2 thoughts on “netsed 1.00a released !

  1. Juaco

    Hello, trying to do a simple test with netsed here, with no success..

    tty1: netsed tcp 1201 0 0 s/a/b
    tty2: nc -l 1200

    tty3:
    iptables -t mangle -A PREROUTING -p tcp –dport 1200 -m state –state NEW -j TPROXY –on-ip 127.0.0.1 –on-port 1201
    nc 127.0.0.1 1200

    And nothing comes out in the netcat listener in tty2 :/

    could it be possible that netsed isn’t working correctly in transparent mode? I don’t see a setsockopt(3, SOL_IP, 0x13 … call in a strace, and as (little) far as i know there should be such syscall for transparent proxy to work.

    Many thanks

  2. Julien Post author

    Hello Juaco,

    As we’ve been talking by email, I’ll post a summary here for other readers.

    Netsed does not have TPROXY support (yet!, patch welcome).

    So you’ll have to use REDIRECT for your need. Something like the following work in your case:

    iptables -t nat -A PREROUTING -i -p tcp –sport 1200 -j REDIRECT –to-port 1201

    Hope this can help any other netsed users ;)

Comments are closed.