Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
A newbie question...but I bought a Internet appliance that has RedHat 7.0 Kernal 2.2.16-22 preloaded. The firewall does not allow opening ports 25 or 110 from the Html gui. I can telnet to it and am at bash. What do I do now? I just want this device to allow traffic in/out on these ports as well as 5900 and 1225-26.
Thanks in advance
Toshiba tech support. Ok, I'm in the root directory and each one of those commands returns: chkconfig: command not found. Sorry,
I need baby steps here.
ipchains
#!/bin/sh
#
# Startup script to implement /etc/sysconfig/ipchains pre-defined rules.
#
# chkconfig: 2345 08 92
#
# description: Automates a packet filtering firewall with ipchains.
#
# Script Author: Joshua Jensen <joshua@redhat.com>
# -- hacked up by gafton with help from notting
#
# config: /etc/sysconfig/ipchains
# Source 'em up
. /etc/init.d/functions
IPCHAINS_CONFIG=/etc/sysconfig/ipchains
if [ ! -x /sbin/ipchains ]; then
exit 0
fi
KERNELMAJ=`uname -r | sed -e 's,\..*,,'`
:
KERNELMIN=`uname -r | sed -e 's,[^\.]*\.,,' -e 's,\..*,,'`
if [ "$KERNELMAJ" -lt 2 ] ; then
exit 0
fi
if [ "$KERNELMAJ" -eq 2 -a "$KERNELMIN" -lt 2 ] ; then
exit 0
fi
case "$1" in
start)
# don't do squat if we don't have the config file
if [ -f $IPCHAINS_CONFIG ]; then
# If we don't clear these first, we might be adding to
# pre-existing rules.
action "Flushing all current rules and user defined chains:" ipchain
s -F
action "Clearing all current rules and user defined chains:" ipchain
s -X
ipchains -Z
echo -n "Applying ipchains firewall rules: "
grep -v "^[[:space:]]*#" $IPCHAINS_CONFIG | grep -v '^[[:space:]
]*$' | /sbin/ipchains-restore -p -f && \
Hello,
I tried to create a new rule in /sa2/templates/etc/sysconfig/ipchains
and discovered that I can't save anything...error message says
something like could not open <file> for edit and file is read only
use the ! option to override. I get this message when I create a
totally new file in my home directory as well. Is the obvious problem that I don't have write permission? But why would'nt I be able to write to my home dir?
Thanks,
Victorian
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.