LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2015, 10:20 AM   #1
plafratt
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Rep: Reputation: Disabled
Which port is getting blocked by proxy?


I have a program that is trying to access a remote site through a particular port that is getting blocked by my organization's proxy. Is there an easy way to tell what port the program is trying to use?

Thanks,
Patrick
 
Old 06-24-2015, 10:52 AM   #2
plafratt
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
I was able to get some information that looks somewhat useful by running the command "strace -f -e trace=network -s 10000 <program_name>". There is a line of output that says:

[pid 23229] recvfrom(3, "\0\265\201\203\0\1\0\0\0\1\0\0\4http\0\0\1\0\1\0\0\6\0\1\0\0\34\336\0@\1a\froot-servers\3net\0\5nstld\fverisign-grs\3com\0x\33i\200\0\0\7\10\0\0\3\204\0\t:\200\0\1Q\200", 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.1.1")}, [16]) = 97

Does anyone know what encoding is being used for the numbers there?

Thanks,
Patrick
 
Old 06-24-2015, 03:59 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,128

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
I tend to just use wireshark and record a time frame.

http://chadfowler.com/blog/2014/01/2...gic-of-strace/

When you add to a post instead of edit, you make it appear like someone is helping by the way. Consider using edit for the first post in sequence. It will leave it as an 0 reply and keep it more on top.
 
1 members found this post helpful.
Old 06-24-2015, 04:17 PM   #4
plafratt
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks for the response.

Yes, someone else had recommended that I use Wireshark. I was hoping to find a way that didn't require root.

I had seen that tutorial on strace earlier today and skimmed it. I hadn't noticed an explanation of the encoded values in the arguments of the type shown in my original post.

Ok, thanks for the tip on editing. I will plan to do that in the future.

Thanks again.
 
  


Reply

Tags
ports, proxy


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SFTP server port blocked on Uni network, need to change the listening port. sammyboy161 Linux - Newbie 2 10-21-2010 12:03 PM
Iptables - port forwarding to blocked port? spangberg Linux - Networking 2 03-26-2010 04:48 AM
Blocked ports question proxy ? jlim0930 Linux - Networking 2 03-09-2007 03:09 PM
Synaptic mirrors are blocked by my school's proxy... ThomasJ Ubuntu 2 11-02-2005 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration