LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-18-2004, 11:38 AM   #1
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Rep: Reputation: 15
How can i get free access between to mandrake boxes in a lan?


Hi friends

OK no matter how much i read about shorewall i cant understand it. Here is the senario:

I got two mandrake boxes in a LAN. One is connected to internet via ADSL (i got two network cards in that box).

On the box connected to internet i got shorewall watching the doors.

A couple of months ago i used Webmin to configure shorewall so i could communicate via NFS and it have worked well since then. Until yesterday when i used the "Mandrake wizard" to open another port and it totaly destoyed my nice configuration.

Ofcourse i cant remember the settings i have made (and its not the first time i made the misstake to use the wizard...)

I am the only one using both computers do i really need to have a firewall "between" both computers? It should really save me some google time to have the gates totaly open between the computers. I mean all traffic to the "dangerous" internet passes through the firewall anyway

How do i open the firewall so both computers could freely communicate? Is that done with a policy?

Regards
Klas
 
Old 04-18-2004, 11:50 AM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
Provided you are the only user on both machines, it is debatable whether you need to firewall between them. On one hand, one of the machines is on the Internet, and therefore subject to possible cracking. If someone rooted your Internet enabled machine, without a firewall on the other machine they would own both machines fairly easily. However, as long as you do your level best to secure the Internet enabled machine your odds are pretty low of being rooted, so it s a security vs. convenience issue.

It is not a policy that you need to create full access between machines, but a couple of well written rules. Assuming your ip's are 192.168.0.1 and 192.168.0.2 the following would do it.

These go into the firewall on the machine with 0.1 as its internal IP
iptables -A INPUT -s 192.168.0.2 -p ALL -j ACCEPT
iptables -A OUTPUT -d 192.168.0.2 -p ALL -j ACCEPT

Or you could do it by interface name

iptables -A INPUT -i eth1 -p ALL -j ACCEPT
iptables -A OUTPUT -o eth1 -p ALL -j ACCEPT

On the internal machine you can simply turn off the firewall entirely.

It's early here so if anyone spots a mistake or has a better method, pipe up..;-)
 
Old 04-18-2004, 12:26 PM   #3
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
Thanks for reply

Your ideas seems very smart (i checked the man page and i think i understand the meaning), but i have a feeling of that mandrakes "preconfiguredspecialstrangepolicy" settings is messing with me. It would be nice to kick out the wizards and take control. I belive knowledge is the best security.

Mayby you could recomend some nice gui wich is a bit more intuitive then webmins shorewall.

Bye the way i tried your settings and ofcourse it didnt work in my messy firewall

Thanks again
Klas
 
Old 04-19-2004, 01:30 PM   #4
pgmer6809
LQ Newbie
 
Registered: Apr 2004
Distribution: Mint 21.1 Vera
Posts: 23

Rep: Reputation: 0
Mandrake and two ethernet cards

Klas:
You say you have Mandrake with two ethercards.
One for internet, and one for internal.
I am trying to get a similar setup working. Mandrake 10.0
Both my ethernet cards are the same make and model (SMC 1244TX).
I am having a lot of trouble getting both recognized by the kernel at load time. It looks like default tulip.ko cannot handle two cards.
Since you have this setup working any suggestions?
(Mandrake H/W wizard sees both cards on the PCI bus).
Thanks, Greg
 
Old 04-19-2004, 01:47 PM   #5
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
I used the Drakgw wizard (mandrake contolcentral) to configure my shared internet. I have two diffrent network cards so i didnt have your problem.

I suggest you ask the proffesionals in the Hardware LQ forum, i am sure they can help you.

Good luck

Klas
 
Old 04-19-2004, 04:04 PM   #6
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
I tried many different GUI's for iptables until realizing there is no good GUI for iptables. The best way to do Linux firewalling IMO is to read the how-to's, and write a firewall script by hand. It sounds harder than it is. Remember the golden rule of iptables: write a rule, test a rule, write another rule, test again. Repeat.

You can try Guarddog or any of the other iptables GUI's if you want, but don't expect miracles. The only way to get the job done right is to do it yourself.
 
Old 04-20-2004, 01:20 AM   #7
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
Thanks for your suggestions

Ill try guarddog and dig a bit deeper in the iptables howtos at the same time, you guys will probably hear more from me in the future

Regards Klas
 
  


Reply



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
Mandrake - Unable to access LAN SamJ Linux - Networking 2 02-11-2005 05:45 AM
Linux gateway on a LAN and the rest of the boxes are XP MR_UNO Linux - Networking 12 12-02-2004 02:20 AM
mandrake 10 server on a lan with windows boxes MR_UNO Linux - Networking 7 11-15-2004 06:12 PM
Mandrake new Asus mobo, 3com Gig 940 Lan can not access Internet Chris_Light Linux - Hardware 1 02-08-2004 05:37 PM
File transfer between two linux boxes in a LAN ganninu Linux - Newbie 6 09-09-2003 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:28 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
Open Source Consulting | Domain Registration