LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   linux shorewall/firewall problems (https://www.linuxquestions.org/questions/linux-networking-3/linux-shorewall-firewall-problems-240856/)

robokiller 10-10-2004 02:21 AM

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!!!!!
:newbie:

scowles 10-10-2004 05:34 AM

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


robokiller 10-10-2004 07:48 PM

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!!:mad:

scowles 10-10-2004 10:35 PM

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.

robokiller 10-11-2004 12:41 AM

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!!!!
:(

scowles 10-11-2004 06:20 AM

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

robokiller 10-11-2004 07:03 PM

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


All times are GMT -5. The time now is 01:23 PM.