Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using a VoIP provider using SIP signalling for setup, i know that they restricted logins based on your user-agent string. Which means I have to use their hardware/softphone. I'm quite keen to run X-lite from xten on mac osx, or even kphone or similiar on linux, but as there any tool or way in linux i can manipulate the user-agent field string in the msgs? Thanks
Error: cannot listen on the socket
Check w netstat: prolly your app to be using it for incoming requests. Choose different local port for rerouting through Netsed. If you can't redirect traffic, check README for transparent proxying.
Did you try your version to listen to any UDP port? Mine just doesnt work..so I checked his source code and found some parts of it were hard coded to use TCP functions..eg. using accept() instead of recvfrom() method for UDP. What version of netsed are you running if it works listening to any UDP port? So after changing the source code, this is what I'm getting:
./netsed udp 5060 someip 5060 s/3700/1600/1
netsed 0.01b by Michal Zalewski <lcamtuf@ids.pl>[*] Parsing rule s/3700/1600/1...
[+] Loaded 1 rules...
[+] Listening on port 5060/udp.
[+] Using fixed forwarding to someip:5060.
[+] Got incoming connection from 127.0.0.1:33211 to 127.0.0.1:33211[*] Forwarding connection to someip:5060
[-] Client or server disconnect (14168).
[+] Got incoming connection from 127.0.0.1:33211 to 127.0.0.1:33211[*] Forwarding connection to someip:5060
[-] Client or server disconnect (14211).
[+] Got incoming connection from 127.0.0.1:33211 to 127.0.0.1:33211[*] Forwarding connection to someip:5060
[-] Client or server disconnect (14215).
I'm going to double check if it actually replaces the strings in my rules.
Did you try your version to listen to any UDP port?
No.
Mine just doesnt work..so I checked his source code and found some parts of it were hard coded to use TCP functions..eg. using accept() instead of recvfrom() method for UDP.
Great. I'm sure Lcamtuf will accept your patch.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.