newbie firewall

newbie firewall

Post by Stev » Sat, 08 Mar 2003 17:02:52



I recently installed iptables on MDK 9 and used guarddog to set which
protocols are accepted. I was very pleased with the results after going to
grc.com and finding that my system is in "stealth mode". Well according to
that site anyway.

Here's where I need some help. I need to be able to use the telnet client to
access a few talkers (see www.talker.com) that I still frequent. I have
tried allowing the telnet protocol in guarddog, and even disabling the
firewall in guarddog, but I can no longer connect to anything using telnet.

I think maybe the telnet protocol is not enabled by default in iptables,
propably due to it's lack of security, and for some reason, guarddog is not
correctly telling iptables to allow it.

Is there some way to manually allow the telnet protocol? I would like to be
able to turn it on and off as needed.

Thanks... Steve
--
Linux... rebooting is optional

 
 
 

newbie firewall

Post by Stev » Sat, 08 Mar 2003 17:44:50


Follow up:

Well things have changed a bit. Now disabling the firewall in guarddog works
as it should. Which leaves me wondering, is there another protocol that
needs to be enabled in order to telnet?

On an interesting note, went to grc.com with the firewall disabled and it
shows all of my ports as closed.
--
Linux... rebooting is optional

 
 
 

newbie firewall

Post by B. Joshua Rose » Sat, 08 Mar 2003 21:41:02



> Follow up:

> Well things have changed a bit. Now disabling the firewall in guarddog
> works as it should. Which leaves me wondering, is there another protocol
> that needs to be enabled in order to telnet?

> On an interesting note, went to grc.com with the firewall disabled and
> it shows all of my ports as closed.

You don't ever want to use telnet, use SSH instead. SSH does everything
that telnet does plus much much more (like tunneling, X forwarding) and
it does it over an encrypted connection. It also has RSA authentication
which is much harder to hack then the simple password authentication that
telnet relies on.
 
 
 

newbie firewall

Post by Stephen Webste » Sun, 09 Mar 2003 04:12:35



> I think maybe the telnet protocol is not enabled by default in iptables,
> propably due to it's lack of security, and for some reason, guarddog is not
> correctly telling iptables to allow it.

> Is there some way to manually allow the telnet protocol? I would like to be
> able to turn it on and off as needed.

Others have pointed out the dangers of telnet, but if you have to use
it...

To create the rules:
iptables -A OUTPUT -p TCP --dport 23 -m state --state NEW,ESTABLISHED -j
ACCEPT
iptables -A INPUT  -p TCP --sport 23 -m state --state ESTABLISHED -j ACCEPT

IIRC, to delete these rules:
iptables -D OUTPUT -p TCP --dport 23 -m state --state NEW,ESTABLISHED -j
ACCEPT
iptables -D INPUT  -p TCP --sport 23 -m state --state ESTABLISHED -j ACCEPT

--
Steve Webster
Remove the 'nospam' to get my email address.

 
 
 

newbie firewall

Post by Stev » Sun, 09 Mar 2003 07:39:01




>> I think maybe the telnet protocol is not enabled by default in iptables,
>> propably due to it's lack of security, and for some reason, guarddog is
>> not correctly telling iptables to allow it.

>> Is there some way to manually allow the telnet protocol? I would like to
>> be able to turn it on and off as needed.

> Others have pointed out the dangers of telnet, but if you have to use
> it...

> To create the rules:
> iptables -A OUTPUT -p TCP --dport 23 -m state --state NEW,ESTABLISHED -j
> ACCEPT
> iptables -A INPUT  -p TCP --sport 23 -m state --state ESTABLISHED -j
> ACCEPT

> IIRC, to delete these rules:
> iptables -D OUTPUT -p TCP --dport 23 -m state --state NEW,ESTABLISHED -j
> ACCEPT
> iptables -D INPUT  -p TCP --sport 23 -m state --state ESTABLISHED -j
> ACCEPT

Thank you very much!
--
Linux... rebooting is optional
 
 
 

newbie firewall

Post by Andreas Happ » Sun, 09 Mar 2003 10:32:14



> I recently installed iptables on MDK 9 and used guarddog to set which
> protocols are accepted. I was very pleased with the results after going to
> grc.com and finding that my system is in "stealth mode". Well according to
> that site anyway.

do you think that the combination iptables <> newbie is a good one? If
you're a real newbie you shouldn't admin a server and if not there
should be no problem with firewall/iptable scripts, because there should
be no/just few services be running on you linux box.

Andreas
--
 - Debian? - "This is our project and we can do whatever we want with it."
                                 Michael Stone <mstone#debian.org>

 
 
 

newbie firewall

Post by Stev » Wed, 12 Mar 2003 04:20:58




>> I recently installed iptables on MDK 9 and used guarddog to set which
>> protocols are accepted. I was very pleased with the results after going
>> to grc.com and finding that my system is in "stealth mode". Well
>> according to that site anyway.

> do you think that the combination iptables <> newbie is a good one? If
> you're a real newbie you shouldn't admin a server and if not there
> should be no problem with firewall/iptable scripts, because there should
> be no/just few services be running on you linux box.

> Andreas

 I'm not running a server and have very few services running. As far as
being a newbie... I'm referring to Linux only. Hey, everyone has to start
somewhere :)
--
Linux... rebooting is optional
 
 
 

newbie firewall

Post by Andreas Happ » Wed, 12 Mar 2003 07:37:49



>  I'm not running a server and have very few services running.

well, I referred to server as "my machine runs server processes...",
sorry that i was unclear.

Quote:>As far as
> being a newbie... I'm referring to Linux only. Hey, everyone has to start
> somewhere :)

seen the _real_ newbie phrase (;) )? Too many small kids think that they need a huge
amount on service daemons which will never be updated... time bombs.

Andreas
--
 - Debian? - "This is our project and we can do whatever we want with it."
                                 Michael Stone <mstone#debian.org>

 
 
 

newbie firewall

Post by Gonzalo Seriche Veg » Wed, 26 Mar 2003 23:43:27


hey, well uhm, you was a newbie to in the begining when you start to use
linux, are you?
well i consider i was to one of the "newbies" of linux.
I'm an admin of three servers and i have 21 years old, jejej that its!


>> I'm not running a server and have very few services running.

> well, I referred to server as "my machine runs server processes...",
> sorry that i was unclear.

>>As far as
>>being a newbie... I'm referring to Linux only. Hey, everyone has to start
>>somewhere :)

> seen the _real_ newbie phrase (;) )? Too many small kids think that they need a huge
> amount on service daemons which will never be updated... time bombs.

> Andreas

 
 
 

1. Newbie firewall question

Hello,

I'm trying to setup a firewall for a small office network.  I have a RedHat 7.1 machine configured with two interfaces, eth0 (external network) and eth1 (private network).  I'm using iptables for network address translation on the office PC's (that part works).  I also want to configure iptables to restrict all traffic except for dns, dhcp, smtp, pop3, http, and https.  So far I'm not having much luck.  If anyone has some pointers or a similar iptables configuration they can post here, it would be very helpful to this newie!  TIA!

- Jason

2. Cron and Mail to root

3. newbie:Firewall

4. can't load ipt_MASQUERADE.o after kernel upgrade on Debian 2.2

5. Newbie firewall question

6. list of IPv4 aliases on AIX

7. newbie firewall question - Why does my SMTP server not work

8. NFS mount

9. A newbie firewall user has a question about Frazierwall...

10. Newbie - Firewall w/o NAT

11. Newbie Firewall question

12. Newbie firewall question

13. Newbie Firewall Question