LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   netsed (https://www.linuxquestions.org/questions/linux-software-2/netsed-4175592553/)

stern0m1 10-30-2016 11:19 PM

netsed
 
Im trying to get netsed working on open-wrt, im trying
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 10000
netsed tcp 10000 0 0 s/Hello/bbbbb
but this is what i get:
OpenWrt:~# /root/netsed tcp 10000 0 0 s/Hello/bbbbb
netsed 1.00b by Julien VdG
based on 0.01c from Michal Zalewski
Parsing rule s/Hello/bbbbb...
[+] Loaded 1 rule...
getaddrinfo(): Name or service not known
[-] Error: Impossible to resolve remote address or port.
netsed: exiting.
What am i doing wrong?
Thanks

pan64 11-01-2016 10:48 AM

https://anonscm.debian.org/cgit/coll...it/tree/README
based on this rhost rport cannot be 0.


All times are GMT -5. The time now is 09:09 PM.