Re: [leaf-user] open socket

2003-12-05 Thread Erich Titl
Felix

At 09:28 05.12.2003 +0100, you wrote:
Hi Erich,

my server is out side.
I make connection in my c prog. like this
rc = connect(sd, (struct sockaddr *) servAddr,
sizeof(servAddr));
before this I called
1. gethostbyname was ok
2. socket also ok
3. bind port was also ok
Just the connect is fail... :(
What errno?


I've already add the rules

ACCEPT fw  net tcp 90
ACCEPT net fw  tcp 90
ACCEPT fw  net udp 90
ACCEPT net fw  udp 90
but I still get connection reefused.

what do I wrong?
The shorewall set up should work fine

Try
telnet myserver.whatever.dom 90 from inside your firewall?
This should work in any case and would show that your connection is working 
at all.
Then try your homegrown program from the inside

HTH
Erich
THINK
Püntenstrasse 39
8143 Stallikon
mailto:[EMAIL PROTECTED]
PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


[leaf-user] open socket

2003-12-04 Thread Felix Theodor
Hi Everyone,

I've a problem to open a socket from my Bering-Box to
my server via IP and Port 90.

I can ping to my Server from my Bering-Box.
But if I start open the socket I just get connection
refused...

Does someone can help me?

Thank you in advance

regards

Felix

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de


---
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] open socket

2003-12-04 Thread Erich Titl
Felix

At 15:01 04.12.2003 +0100, you wrote:
Hi Everyone,

I've a problem to open a socket from my Bering-Box to
my server via IP and Port 90.
I can ping to my Server from my Bering-Box.
But if I start open the socket I just get connection
refused...
Does someone can help me?
Probably blocked by the firewall
Did you read the Shorewall docs?
You will have to allow the respective port from the firewall to the 
destination zone, something like

ACCEPT  fw  loc tcp 90

in /etc/shorewll/rules.

HTH
Erich
THINK
Püntenstrasse 39
8143 Stallikon
mailto:[EMAIL PROTECTED]
PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16


---
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html