Page 1 of 1

Bind Local port below 1024 in Rooted device

Posted: Tue Dec 10, 2013 6:18 am
by sofo
Hi,
In Rooted device if I want to use local port ( < 1024 ) like 53 , 80 etc.
It is failing saying Permission denied . Local port bind failed.

Is there any way to run it as SU and overcome this problem. or any help on it is appreciated.

Thank you

Re: Bind Local port below 1024 in Rooted device

Posted: Tue Dec 10, 2013 12:17 pm
by sofo
Sorry. Not to mention clearly in last post.

I am using client android 4.0.4 . Server is in centos6.4 Linux box.

In android client I need to bind LOCAL port like 53 and the device is rooted.

You mean I should search for - How to disable that security feature in Android phone?

Thanks

Re: Bind Local port below 1024 in Rooted device

Posted: Tue Dec 10, 2013 3:48 pm
by sofo
Ok.
I mean i need to bind lower (<1024 ) port in Android Client. It is required to bypass firewall. For example

LPORT = 80 RPORT=53 can bypass firewall depending on the firewall nature.


Server is running on port 53.

Packet destination port = 53
packet source port = 80
All UDP packets leaving android Phone need to have sport = 80 , dport = 53

How can I disable this feature in Linux OR how do I run openvpn client (with vpnservice api) as Superuser in rooted device.

any help is appreciated.



Thank you