LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2003, 08:32 AM   #1
Baran
Member
 
Registered: Aug 2003
Location: Tampere-FINLAND
Distribution: Mandrake 10.1
Posts: 105

Rep: Reputation: 15
headache with iptables !


I have problems with my network...

situation is this

there are two computer at home

1. Red Hat 9.0 Samba installed, gateway to the other computer for internet connection

2. A win XP pro thingie connected to the Linux by a direct ethernet cable connection, no hub !


Samba was working pretty fine excpet windows wasn't able to see Linux files because some error like "access denied , autentication error bla bla" I guess this is a common poblem for samba users trying to share with Win Xp pro. I tried to set iptables such that I would allow all pakcages from the winXP's ip, its IP was set as 192.168.0.2 so I learned that I had to write

iptables -A INPUT -s 192.168.0.2 -j ACCEPT

after that probles arised, before I wrote this command I was able to ping WinXP but after this command I lost connection with that I couldn't ping that WinXP anymore. So I wrote

man iptables


to return everything back, I thought this would work

iptables -D INPUT -s 192.168.0.2 -j ACCEPT

but it didn't I am still unable to ping WinXP...

most important then others, I still don't know why? but I cannot login to my X server, it gives an error like,

check your configuration, try to login with a failsafe session and solve the problem

an error like this

In guess I will close all iptables off, I created a thread called iptables but there wasn't sufficent answers for that. Is IP tables a firewall. Aren't there other firewalls which are easier to use..

thanks for the coming answers !
 
Old 10-02-2003, 09:22 AM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
If you didn't save the current running rules rebooting your computer should have set it back to what it was before

It could be a problem with you'r samba setup which I haven't used enough to give any usual thoughts upon

or

hosts.allow/hosts.deny entries could be causing problems

if you've got in /etc/hosts.deny

ALL:ALL

you'll probably need in /etc/hosts.allow something like

smbd: 192.168.0.0/24
nmbd: 192.168.0.0/24

Whenver if've used iptables for a rule like you've done, I've

iptables -A INPUT -p ALL -i eth1 -s 192.168.0.0/24 -j ACCEPT

where eth1 is the one connected to internal computers i.e XP in this case

you haven't specified any -p (protocols) but not being an expert you understand perhaps it's causing the problem
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables made me headache .... HELP! mas_giong Linux - Networking 1 12-18-2004 12:05 AM
Sendmail + restrictive iptables = headache flp Linux - Security 5 09-09-2004 07:35 PM
Help im so new i have a headache jjh221 Linux - Newbie 3 02-11-2004 09:02 PM
Samba Headache! scorpatron Linux - Networking 4 11-10-2003 05:36 AM
headache... katana Linux - General 2 08-02-2001 08:44 AM


All times are GMT -5. The time now is 11:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration