Networking Forums

Networking Forums > Computer Networking > Linux Networking > my problem with iptables - I think

Reply
Thread Tools Display Modes

my problem with iptables - I think

 
 
Overbey
Guest
Posts: n/a

 
      11-26-2003, 06:52 PM
I seem to have a problem where iptables is keeping me from doing any kind of
networking. On reboot, eth0 does not receive an IP address from my dhcp
server. If I log on to the box locally, and check the RedHat firewall
(lokkit), it shows that it is on in the default configuration (medium). I
turn it off and bring up the network (ifconfig eth0 IP_address), then the
ifconfig shows packets being received and sent. From other systems, I am
then able to ping the box, however, I can not ssh, telnet, or rsh to it
(yes, I have installed and turned these protocols on).

Any pointers or assistance is greatly appreciated.

(E-Mail Removed)


 
Reply With Quote
 
 
 
 
Robert Spielmann
Guest
Posts: n/a

 
      11-26-2003, 11:08 PM
Overbey wrote:

> I seem to have a problem where iptables is keeping me from doing any kind
> of
> networking. On reboot, eth0 does not receive an IP address from my dhcp
> server. If I log on to the box locally, and check the RedHat firewall
> (lokkit), it shows that it is on in the default configuration (medium). I
> turn it off and bring up the network (ifconfig eth0 IP_address), then the
> ifconfig shows packets being received and sent. From other systems, I am
> then able to ping the box, however, I can not ssh, telnet, or rsh to it
> (yes, I have installed and turned these protocols on).
>
> Any pointers or assistance is greatly appreciated.
>
> (E-Mail Removed)


You might take a look either at the iptables startup script or into the
rules of iptables chains. Just issue "iptables -L" as root and look what
exactly it blocks. It´s hard to tell what the problem might be without any
detailed information :-)

Cheers
Robert

 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      11-27-2003, 07:22 PM
"Overbey" <(E-Mail Removed)> said:
>I seem to have a problem where iptables is keeping me from doing any kind of
>networking. On reboot, eth0 does not receive an IP address from my dhcp
>server. If I log on to the box locally, and check the RedHat firewall
>(lokkit), it shows that it is on in the default configuration (medium).


Ok.

>I turn it off and bring up the network (ifconfig eth0 IP_address), then the
>ifconfig shows packets being received and sent.


Hmm - here you're not getting the address from the DHCP server, but
setting it manually. Try "ifup eth0" to get the same behaviour you'd
have at boot time (so, DHCP if your system is configured for DHCP,
and so on). So, this'd check that your DHCP client software can
interoperate with whatever DHCP server your network has.

>From other systems, I am then able to ping the box, however, I can
>not ssh, telnet, or rsh to it (yes, I have installed and turned these
>protocols on).


Well, if you're having ssh, there might not be a point to have either
of the other two. Anyway, what might be wrong after the manual ifconfig
would be the network mask and default gateway (which will be set by
DHCP, if it works). However, if the ping works but "data" protocols
don't (as you say), then it looks like you still have some firewalls
in place.

Things to check:
- run "netstat -lpt" on the Linux machine to show the listening sockets
and processes associated with them; you should see, among others,
a sshd process listening at "*:ssh"
- what does "iptables -vL" show -- shouldn't give you any rule lines,
and all the policies should be set to "ACCEPT"
- run "tcpdump -i eth0 -vvvX tcp port ssh"
and attempt to connect with ssh from a remote host -- you should get
a packet dump of the traffic on display
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
Overbey
Guest
Posts: n/a

 
      11-28-2003, 02:55 PM
Thanks,
Will try yours suggestions.
The iptables -L does show Accept -- I will post results shortly.
Thanks again
Overbey

"Juha Laiho" <(E-Mail Removed)> wrote in message
news:bq5m7s$1fu$(E-Mail Removed)-int...
> "Overbey" <(E-Mail Removed)> said:
> >I seem to have a problem where iptables is keeping me from doing any kind

of
> >networking. On reboot, eth0 does not receive an IP address from my dhcp
> >server. If I log on to the box locally, and check the RedHat firewall
> >(lokkit), it shows that it is on in the default configuration (medium).

>
> Ok.
>
> >I turn it off and bring up the network (ifconfig eth0 IP_address), then

the
> >ifconfig shows packets being received and sent.

>
> Hmm - here you're not getting the address from the DHCP server, but
> setting it manually. Try "ifup eth0" to get the same behaviour you'd
> have at boot time (so, DHCP if your system is configured for DHCP,
> and so on). So, this'd check that your DHCP client software can
> interoperate with whatever DHCP server your network has.
>
> >From other systems, I am then able to ping the box, however, I can
> >not ssh, telnet, or rsh to it (yes, I have installed and turned these
> >protocols on).

>
> Well, if you're having ssh, there might not be a point to have either
> of the other two. Anyway, what might be wrong after the manual ifconfig
> would be the network mask and default gateway (which will be set by
> DHCP, if it works). However, if the ping works but "data" protocols
> don't (as you say), then it looks like you still have some firewalls
> in place.
>
> Things to check:
> - run "netstat -lpt" on the Linux machine to show the listening sockets
> and processes associated with them; you should see, among others,
> a sshd process listening at "*:ssh"
> - what does "iptables -vL" show -- shouldn't give you any rule lines,
> and all the policies should be set to "ACCEPT"
> - run "tcpdump -i eth0 -vvvX tcp port ssh"
> and attempt to connect with ssh from a remote host -- you should get
> a packet dump of the traffic on display
> --
> Wolf a.k.a. Juha Laiho Espoo, Finland
> (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
> PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
> "...cancel my subscription to the resurrection!" (Jim Morrison)



 
Reply With Quote
 
Overbey
Guest
Posts: n/a

 
      11-29-2003, 05:19 PM
Thanks for the assistance,
I believe I fixed my issue. Some kind of configuration with iptables. Once
I got that straight, everything appears to work. The other issue is mine --
trying to use a heavy OS on a lite machine, ergo the machine does not have
enough memory or processor speed to do what I want.
thanks again
Overbey


"Overbey" <(E-Mail Removed)> wrote in message
news:aeKxb.55747$(E-Mail Removed) et...
> Thanks,
> Will try yours suggestions.
> The iptables -L does show Accept -- I will post results shortly.
> Thanks again
> Overbey
>
> "Juha Laiho" <(E-Mail Removed)> wrote in message
> news:bq5m7s$1fu$(E-Mail Removed)-int...
> > "Overbey" <(E-Mail Removed)> said:
> > >I seem to have a problem where iptables is keeping me from doing any

kind
> of
> > >networking. On reboot, eth0 does not receive an IP address from my

dhcp
> > >server. If I log on to the box locally, and check the RedHat firewall
> > >(lokkit), it shows that it is on in the default configuration (medium).

> >
> > Ok.
> >
> > >I turn it off and bring up the network (ifconfig eth0 IP_address), then

> the
> > >ifconfig shows packets being received and sent.

> >
> > Hmm - here you're not getting the address from the DHCP server, but
> > setting it manually. Try "ifup eth0" to get the same behaviour you'd
> > have at boot time (so, DHCP if your system is configured for DHCP,
> > and so on). So, this'd check that your DHCP client software can
> > interoperate with whatever DHCP server your network has.
> >
> > >From other systems, I am then able to ping the box, however, I can
> > >not ssh, telnet, or rsh to it (yes, I have installed and turned these
> > >protocols on).

> >
> > Well, if you're having ssh, there might not be a point to have either
> > of the other two. Anyway, what might be wrong after the manual ifconfig
> > would be the network mask and default gateway (which will be set by
> > DHCP, if it works). However, if the ping works but "data" protocols
> > don't (as you say), then it looks like you still have some firewalls
> > in place.
> >
> > Things to check:
> > - run "netstat -lpt" on the Linux machine to show the listening sockets
> > and processes associated with them; you should see, among others,
> > a sshd process listening at "*:ssh"
> > - what does "iptables -vL" show -- shouldn't give you any rule lines,
> > and all the policies should be set to "ACCEPT"
> > - run "tcpdump -i eth0 -vvvX tcp port ssh"
> > and attempt to connect with ssh from a remote host -- you should get
> > a packet dump of the traffic on display
> > --
> > Wolf a.k.a. Juha Laiho Espoo, Finland
> > (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
> > PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
> > "...cancel my subscription to the resurrection!" (Jim Morrison)

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2.6.20 iptables nat Problem? Doug Mitton Linux Networking 7 02-08-2007 07:11 PM
iptables ftp problem johnny bobby bee Linux Networking 7 05-13-2005 10:30 AM
iptables problem Jozza Linux Networking 0 02-02-2005 12:03 PM
Iptables problem Carsten Keller Linux Networking 1 10-07-2003 11:36 AM
FTP problem with IPTABLES Karl Bickmore Linux Networking 3 07-12-2003 03:01 PM



1 2 3 4 5 6 7 8 9 10 11