LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   ipchains problem (https://www.linuxquestions.org/questions/linux-security-4/ipchains-problem-165274/)

gz_xmg 04-02-2004 03:23 AM

ipchains problem
 
hello!!
i hava a linux server with kernel 2.4.7. Server is running a jsp website with mysql. i setup a firewall using ipchains.my firewall's rules are only accept 80,8080,3306,23 and deny all. but i cann't write this rules.
Can anyone help me solve it please ?
thanks!

micxz 04-02-2004 03:34 AM

What do you mean you can't do it? WHat's the problem?

gz_xmg 04-02-2004 06:35 PM

Quote:

Originally posted by micxz
What do you mean you can't do it? WHat's the problem?
sorry, i want to write firewall rules using ipchains. The rules that i want is accept 80,8080,23,3306 and deny others all ports. thanks lots.

micxz 04-02-2004 06:53 PM

When logged in as root ( "su -" ), type:

cd /usr/bin
wget http://www.geocities.com/steve93138/kiss-2.0.1.tar.gz
tar zxvf kiss-2.0.1.tar.gz

That's it! To get it running anywhere on the command line, you simply type:

kiss start

To stop the firewall, type:

kiss stop

To get status information, type:

kiss status

If you want to block an offenders IP address/subnet, simply edit the BLOCK_LIST variable in the /usr/bin/kiss file. You can separate IP addresses and subnet's with a space. Once you are finished, simply restart KISS by typing:

kiss restart

Last, but not least, it is recommended that you configure the firewall to allow only for needed ports. Using trusted IP addresses/subnets is also recommended. These variables are located near the beginning of the /usr/bin/kiss file and are self-explanatory. Once you make changes, you should always restart KISS for the changes to take effect:

kiss restart

gz_xmg 04-08-2004 02:36 AM

thans your reply. but i don't success for downloading the KISS scripts.
Can you write the rules on bbs ? I really want to get it for my linux server.
thanks in advance a lots.


All times are GMT -5. The time now is 03:17 AM.