Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to check firewall setting and how to change it?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wildleaf
n00b
n00b


Joined: 12 Oct 2004
Posts: 71

PostPosted: Tue Oct 12, 2004 1:21 am    Post subject: How to check firewall setting and how to change it? Reply with quote

Hi

Can anyone tell me how to change the firewall setting? I installed Gentoo and Subversion. But when I connected from a windows machine using SVNclient, it gave me an error message:

Code:

(Can't connect to host '192.168.0.20': No connection could be made because the target machine actively refused it.  )


Is it caused by the firewall restrictions?

Thanks a lot!
Back to top
View user's profile Send private message
joeybravo
n00b
n00b


Joined: 30 Aug 2002
Posts: 45
Location: PH

PostPosted: Tue Oct 12, 2004 3:00 am    Post subject: Reply with quote

We could help you if you can show us the output of:
Code:
iptables-save > firewall-rules.txt

or the firewall script you are using.
(you should mask any public IP address on the output if there is one )

Or you could be using WinXP with Service Pack 2 with firewall enabled?
Make sure you allow SVNclient to connect outbound, or allow connection
to the IP address of your SVN server.
_________________
--lucky are the pessimists
for they make backups..
Back to top
View user's profile Send private message
wildleaf
n00b
n00b


Joined: 12 Oct 2004
Posts: 71

PostPosted: Tue Oct 12, 2004 3:21 pm    Post subject: joeybravo Reply with quote

joeybravo - Thank you. But I didn't have any iptables stuffs installed and could not find this command. What else do you think I can try? Is it really a firewall problem? Or Gentoo have its own port blocking rules?

Thanks.
Back to top
View user's profile Send private message
joeybravo
n00b
n00b


Joined: 30 Aug 2002
Posts: 45
Location: PH

PostPosted: Wed Oct 13, 2004 2:30 am    Post subject: Reply with quote

Hmm.. definitely not a port blocking or firewall issue with Gentoo, coz you
mentioned you don't have iptables installed.

I don't have any experience with SVN..

But its worth checking what port did you configure SVN to listen on?
By default (no Apache) it waits for a connection on:

svn 3690/tcp # Subversion
svn 3690/udp # Subversion

To check what TCP port is listening and process is using a particular port issue this command:

Code:
#netstat -antp


If you don't see SVN binary bound to any port it's either its not started
or you have problem in your SVN configs.

If its listening to the port you configured it to listen to, try connecting
from within the Gentoo box if you can connect.

HTH
_________________
--lucky are the pessimists
for they make backups..
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Thu Oct 14, 2004 7:41 am    Post subject: Reply with quote

I have a similar question. Having read this post I actually tried out:

Code:

 iptables-save > firewall-rules.txt


But the file returned back empty and I would now like to start adding in rules to protect my box. Is there some easy going firewall howto that I could use to quickly put something in place?


Last edited by trossachs on Thu Oct 14, 2004 11:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
primero.gentoo
Guru
Guru


Joined: 23 Dec 2003
Posts: 402

PostPosted: Thu Oct 14, 2004 8:09 am    Post subject: Reply with quote

JulesF wrote:
I have a similar question. Having read this post I actually tired out:

Code:

 iptables-save > firewall-rules.txt


But the file returned back empty and I would now like to start adding in rules to protect my box. Is there some easy going firewall howto that I could use to quickly put something in place?


Iptables for Newbie Part I

Part II

Bye
_________________
"Linux, the choice of a GNU generation"
==Micro$oft - just say NO==
(L#USER 353039)
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Thu Oct 14, 2004 8:48 am    Post subject: Reply with quote

Also a good place to read about and it has it's own doc's that help a lot:

http://www.netfilter.org/


_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Thu Oct 14, 2004 5:39 pm    Post subject: Reply with quote

for a quick firewall I recommend shorewall
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Thu Oct 14, 2004 11:44 pm    Post subject: Reply with quote

Thanks for this. I've just re-natted my router and cut off some unused ports so for the moment, this will surfice. But I will also look at the iptables that you have listed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum