LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-10-2010, 02:38 PM   #1
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Rep: Reputation: 33
firestarter giving grief


hi I just upgraded my box, just carted the hds out and into the new. firestarter was working fine on the old with the nic plugged into pci.

now, when i try and start it, it complains that eth0, isn't working. at present i have eth1 <onboard> and eth2 <pci> or

can someone give me the iptables commands to open the following:

btorrent
ftp 20-21
ftp passive 10100-10199
ssh 92
smb

thats it on this box ssh is 92 on here, we port fwd so 22 is taken

oh yeah and where to put them so it does it all the time.

Last edited by johnh10000; 03-10-2010 at 02:42 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-10-2010, 02:53 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Some of the information is impossible to provide without knowing what distribution you're running (like where to put it so it loads on boot.)

The commands themselves would also depend on that in many cases, for instance redhat you're likely going to want to add them to the RH-Firewall-1-INPUT chain. Debian, not so much.

Could you give us some additional details?
 
Old 03-10-2010, 03:02 PM   #3
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by rweaver View Post
Some of the information is impossible to provide without knowing what distribution you're running (like where to put it so it loads on boot.)

The commands themselves would also depend on that in many cases, for instance redhat you're likely going to want to add them to the RH-Firewall-1-INPUT chain. Debian, not so much.

Could you give us some additional details?
sorry, was a bit cross when i wrote it.

ubuntu karmic
 
Old 03-10-2010, 05:45 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
If you already have it setup, you'd be better trying to use that and just change the interface. Try "firestarter --help" or look for a config file.
(Been years since I looked at it).
 
Old 03-10-2010, 05:47 PM   #5
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by syg00 View Post
If you already have it setup, you'd be better trying to use that and just change the interface. Try "firestarter --help" or look for a config file.
(Been years since I looked at it).
it worked fine b4. now it dont' show access even local !!!!

i'll say one thing we are secure!
 
Old 03-11-2010, 12:58 AM   #6
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
I have read that you upgraded hardware and this may help you (if it's mile off I apologise):

Ubuntu is ''helpful'' with NIC's. If you change NIC (or mobo with built in NIC) it will usually assign a new ID such as eth1/2/3 etc because it sees a different MAC/Hardware address on the device. Of course, assigning your NIC a new eth1/2/3 ID will break all of your Firestarter rules because they are usually all relevant to eth0. Personally I find this behaviour a PITA, but once you know it does this, the fix is trivial:

Edit this file:
/etc/udev/rules.d/70-persistent-net-rules

You'll probably find you have a couple of entries that look similar to this:

Quote:
# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:16:21:4C:8b:fe", NAME="eth0"

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:92:fe:4C:29:fe", NAME="eth1
eth0 will be locked to the old mac of the old nic. Personally I would delete both lines and reboot - this should the correctly assign your new NIC to eth0 and everything should work again. If you prefer just edit the ATTRS{address} to suit and restart your networking (sudo /etc/init.d/networking restart)

HTH

Last edited by spampig; 03-11-2010 at 01:02 AM. Reason: added options
 
2 members found this post helpful.
Old 03-11-2010, 02:42 AM   #7
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by spampig View Post
I have read that you upgraded hardware and this may help you (if it's mile off I apologise):

Ubuntu is ''helpful'' with NIC's. If you change NIC (or mobo with built in NIC) it will usually assign a new ID such as eth1/2/3 etc because it sees a different MAC/Hardware address on the device. Of course, assigning your NIC a new eth1/2/3 ID will break all of your Firestarter rules because they are usually all relevant to eth0. Personally I find this behaviour a PITA, but once you know it does this, the fix is trivial:

Edit this file:
/etc/udev/rules.d/70-persistent-net-rules

You'll probably find you have a couple of entries that look similar to this:

eth0 will be locked to the old mac of the old nic. Personally I would delete both lines and reboot - this should the correctly assign your new NIC to eth0 and everything should work again. If you prefer just edit the ATTRS{address} to suit and restart your networking (sudo /etc/init.d/networking restart)

HTH
i now have connection, on eth0, so far so good.
/etc/udev/rules.d/70-persistent-net-rules is now "empty", but fire
starter now complains it can't "find eth2" last used eth port. reinstalling firestarter again....

btw whats PITA
 
Old 03-11-2010, 02:48 AM   #8
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Pain in the .........
 
1 members found this post helpful.
Old 03-11-2010, 03:00 AM   #9
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by spampig View Post
Pain in the .........
It looks like, as I am not in the mood for a fight, pick up ftp disk, and put in the server box. The all I have to is open samba and my-shh 92
 
Old 03-11-2010, 03:08 AM   #10
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Try launching the Firestarter GUI (usually under applications / internet) and selecting EDIT > PREFERENCES > FIREWALL > NETWORK SETTINGS and change the NIC there. You'll need to bounce/restart networking for it to bite.
 
Old 03-11-2010, 03:19 AM   #11
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by spampig View Post
Try launching the Firestarter GUI (usually under applications / internet) and selecting EDIT > PREFERENCES > FIREWALL > NETWORK SETTINGS and change the NIC there. You'll need to bounce/restart networking for it to bite.
I edited /etc/firestarter/configuration and restarted the box.

and it's not good enough, oh yes it works on eth0 now, weget current connections, but when i try to go LOCAL ftp site, it dont show up there.

cross with this. chg of mind, partion my new 340gb to reflect /home and home/ftp then reinstall i think.


you seem quite knowledgable, if i want to say to firestarter, accept everting off my local lan i'd say

192.168.1.0/24 yeah? do you have link or something to explai how /24 /16 /8 etc works?
 
Old 03-11-2010, 03:48 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
On the firestarter site I saw one - maybe the FAQ.
 
Old 03-11-2010, 03:52 AM   #13
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by syg00 View Post
On the firestarter site I saw one - maybe the FAQ.
well home and ftp yep! and the configs, mind you there was a minor problem the other day... when the configs turned into err junk! can't wait for Luicd, 10.4 only next month.

thanks for all your help
 
Old 03-11-2010, 09:30 AM   #14
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Yeah all up and running now with tux totally on the new 340gb hd, fine and dandy. just put other ftp disk in tux2 for back up. if your about pls test, via the website http://tux.isa-geek.org
 
Old 03-11-2010, 09:34 AM   #15
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
From outside I can see all this open (assuming you are an NTL customer off the Winchester assigned address spaces)

21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
80/tcp open http
91/tcp open mit-dov
110/tcp open pop3
465/tcp open smtps
8000/tcp open http-alt
 
  


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
Huawei E160 modem giving me grief on Slackware (What am I doing wrong?) tux_addict Slackware 11 05-17-2011 11:14 PM
Grief with installation trousers Linux - Software 1 03-22-2005 03:25 PM
VLC Giving me Grief croakofonix Linux - Software 0 08-28-2004 08:24 PM
ATI giving me grief dtjohnst Slackware 12 04-21-2004 07:34 PM
7,1 Install grief wmlynn Linux - Software 1 03-27-2002 10:24 PM

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

All times are GMT -5. The time now is 09:54 AM.

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