This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Different error on socket while connecting to a box behind firewall


Hello Everyone,

I am experiencing an issue of getting different error on a socket
while connecting to a Linux RedHat Enterprise Server 5 running on
Intel 64 bit on different versions of Cygwin. Recently I migrated from
Cygwin 1.5.24-2 to 1.7.7-1.

Files cygcheck.out.1.5.24-2.txt and cygcheck.out.1.7.7-1.txt contains
the output of 'cygcheck -s -v -r' when run on 1.5.24-2 and 1.7.7-1
respectively.

cyggso.c.txt- is the C program I used to reproduce the issue. The
program takes 2 arguments- a valid hostname or an IP address of a
RedHat box running a firewall and a TCP port on which a
service/application is listening.

Linux Firewall.txt- is the output of the command 'iptables'.

Files gcc.version.cygwin-1.5.24-2.txt and
gcc.version.cygwin-1.7.7-1.txt contains the gcc version used to
compile cyggso.c.

Files cyggso.out-1.5.24-2.txt and cyggso.out-1.7.7-1.txt contains the
output when cyggso.c is compiled and run on Cygwin 1.5.24-2 and
1.7.7-1 respectively.

Since RedHat machine is behind a firewall (defined by the rules in
'Linux Firewall.txt') I am expecting my program to give "No route to
host" error (shown in cyggso.out-1.5.24-2.txt file) and not "Operation
not permitted" (shown in cyggso.out-1.7.7-1.txt file).

If anyone has encountered this issue and know the solution, can you
please share with me.
Not sure if it's an issue between Cygwin versions though. If it is, do
we have any fix for this?

Thanks in advance.
Jaswinder

Attachment: Linux Firewall.txt
Description: Text document

Attachment: cygcheck.out.1.5.24-2.txt
Description: Text document

Attachment: cygcheck.out.1.7.7-1.txt
Description: Text document

Attachment: cyggso.c.txt
Description: Text document

Attachment: cyggso.out-1.5.24-2.txt
Description: Text document

Attachment: cyggso.out.1.7.7-1.txt
Description: Text document

Attachment: gcc.version.cygwin-1.5.24-2.txt
Description: Text document

Attachment: gcc.version.cygwin-1.7.7-1.txt
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]