View previous topic :: View next topic |
Author |
Message |
wildleaf n00b
Joined: 12 Oct 2004 Posts: 71
|
Posted: Tue Oct 12, 2004 1:21 am Post subject: How to check firewall setting and how to change it? |
|
|
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 |
|
|
joeybravo n00b
Joined: 30 Aug 2002 Posts: 45 Location: PH
|
Posted: Tue Oct 12, 2004 3:00 am Post subject: |
|
|
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 |
|
|
wildleaf n00b
Joined: 12 Oct 2004 Posts: 71
|
Posted: Tue Oct 12, 2004 3:21 pm Post subject: joeybravo |
|
|
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 |
|
|
joeybravo n00b
Joined: 30 Aug 2002 Posts: 45 Location: PH
|
Posted: Wed Oct 13, 2004 2:30 am Post subject: |
|
|
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:
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 |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Thu Oct 14, 2004 7:41 am Post subject: |
|
|
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 |
|
|
primero.gentoo Guru
Joined: 23 Dec 2003 Posts: 402
|
Posted: Thu Oct 14, 2004 8:09 am Post subject: |
|
|
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 |
|
|
To Veteran
Joined: 12 Apr 2003 Posts: 1145 Location: Coimbra, Portugal
|
Posted: Thu Oct 14, 2004 8:48 am Post subject: |
|
|
Also a good place to read about and it has it's own doc's that help a lot:
http://www.netfilter.org/
Tó _________________
------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------ |
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Thu Oct 14, 2004 5:39 pm Post subject: |
|
|
for a quick firewall I recommend shorewall |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Thu Oct 14, 2004 11:44 pm Post subject: |
|
|
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 |
|
|
|