LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-14-2006, 12:29 PM   #1
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Rep: Reputation: 32
Game & firewall


I have two installations of Debian on the same machine, one Etch and one Sid.

On the Etch install, the Wordbiz game (java based) has no problem connecting to the game server. On the Sid install, it fires up but never connects.

I have determined it is the firewall by disabling it for a test on Sid and it connects fine. I configure my firewall on both with Guarddog and looking there, I didn't note any differences in protocols allowed.

I was wondering if there was a utility that I could compare the two iptables files with and identify the difference? Could someone point me to the correct iptable file(s) to compare?

I am behind a router that doesn't allow forwarding and has a strong password so I suppose it isn't a biggie to drop the firewall for just playing the game but I don't feel right about that.
 
Old 12-14-2006, 12:44 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
You need the diff command. Copy the iptables rules from both distro's to a separate folder and read the man page for diff. Redirect the output to a separate file for easy reading The command should look like
Code:
diff <options> file1 file2 >> diff-file.txt
 
Old 12-14-2006, 06:38 PM   #3
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
OK, Dutch, thank you for helping!!! but I am a little lost (I did man diff and I think I can handle that) but the iptables file I can't find?

My Googling told me to look for /etc/sysconfig/iptables or iptables config.

well on the Sid install I do have sysconfig but no iptables

My etch install I don't even have /etc/sysconfig

your assistance is really appreciated, rilly
 
Old 12-14-2006, 07:22 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Hmmm.... There is no file of all rules for iptables. Well, make your own:
Code:
iptables -Ln >> iptables_etch/sid.txt
As I don't have any iptables rules I can't test this, but it should work. Execute as root, then change ownership and/or permissions of the file in such a way that a regular user can access it (run diff as normal user) Also, read the iptables man-page on it's options.
 
Old 12-14-2006, 07:47 PM   #5
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
# iptables -Ln >> iptables_etch/sid.txt

returns

bash: iptables_etch/sid.txt: No such file or directory

I think I am stuck
 
Old 12-14-2006, 08:11 PM   #6
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
First: name the resulting file either iptables_etch.txt or iptables_sid.txt according to the distro you're running it on. Did you check if the iptables command is present? Just iptables -L should give you output (on screen) It lists all rules present for iptables. If it doesn't, iptables isn't present (although I doubt that'll be the case as it's a dependency for Guarddog) or not (properly) configured.

If iptables -L does produce output, retry my original command but omit the n option. (thus only the -L option)
 
  


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
how do i install & play window game on linux ngoclinux Linux - Games 3 12-05-2005 11:16 AM
Hercules Game Theater XP & MIDI (?) KimVette Linux - General 14 02-28-2005 06:09 PM
cvswinex & game evensen Linux - Software 0 05-03-2004 01:39 AM
multiplayer tcp/ip game & loopback interface on RH 8 kkempter Linux - Networking 2 02-04-2003 12:33 PM
Linux firewall with internet & dmz & trusted ikhwan98 Linux - Networking 0 11-23-2001 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:48 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