LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-10-2004, 02:21 AM   #1
robokiller
LQ Newbie
 
Registered: Sep 2004
Posts: 21

Rep: Reputation: 15
Unhappy linux shorewall/firewall problems


hi i need help on freeing port 6881 to one of the clients on the network.

i have done this by entering this line in /etc/shorewall/rules file

DNAT net fw loc:192.168.0.3 tcp 6881 -

(with tab-marks too but they not show up) "but it dosen't work"!! anyone help plzzz!!!!!

Last edited by robokiller; 10-10-2004 at 02:23 AM.
 
Old 10-10-2004, 05:34 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
You've got 3 zones listed in your DNAT rule (net->fw->loc). There should only be 2. Try:
Code:
DNAT net loc:192.168.0.3 tcp 6881
 
Old 10-10-2004, 07:48 PM   #3
robokiller
LQ Newbie
 
Registered: Sep 2004
Posts: 21

Original Poster
Rep: Reputation: 15
thanx
i tryed what you said and now it should work but everythime i restart to aplly the setting it erases it from the file!!
 
Old 10-10-2004, 10:35 PM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I've been using shorewall since day one and have never seen it erase (change) the contents of any of its configuration files. Please consider posting a better description (even proof) of the problem you are having so that we can help.
 
Old 10-11-2004, 12:41 AM   #5
robokiller
LQ Newbie
 
Registered: Sep 2004
Posts: 21

Original Poster
Rep: Reputation: 15
well first i tryed opening the file (as root) then I did as above and it all fited perfectly so i saved the file, closed it then restarted the computer.
i then checked the file again and the line i entered was gone. vanished into the datastram of my computer!!

I then tryed webmin. I entered the rule hit apply then restarted to see if it would do the same thing and it did. gone again!!!!
 
Old 10-11-2004, 06:20 AM   #6
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Thank you for the clarification. The problem you describe sounds like you are editing a shorewall config file that is stored on a ram drive, not your hard drive. Are you possibly runing an embedded version of linux like leaf/bering and forgetting to backup any changes you make to the boot device? i.e. flash card, floppy, cdrom

Untill you figure out why your shorewall config file changes are not surviving through a system reboot, you can apply the changes you made to any of the shorewall config files without rebooting your system by simply typing:

# shorewall restart
 
Old 10-11-2004, 07:03 PM   #7
robokiller
LQ Newbie
 
Registered: Sep 2004
Posts: 21

Original Poster
Rep: Reputation: 15
thanx ill try that but i think its the shorewall restarting that erases it. i also have a gateway on there too that shares internet. if i try to turn off the shorewall it atomaticly turns gateway off, and vice-versa,.

mandrake 9.1 pro
 
  


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
configuring shorewall (firewall) mrbig Linux - Software 2 09-09-2005 11:15 AM
Shorewall Firewall Help Pls kumarsundaram Linux - Security 1 07-16-2005 01:32 AM
Shorewall or other firewall??? SlipAway172 Linux - Security 5 01-25-2005 12:42 AM
shorewall problem with firewall itself peter72 Linux - Networking 1 08-01-2004 01:09 PM
Putty and Shorewall.. need help with firewall Newman_SCO Linux - Newbie 5 08-04-2003 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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