[opensuse] Boot Script
- From: "Wong" <wongsuse@xxxxxxxxxx>
- Date: Thu, 1 Oct 2009 15:03:57 +0800
Dear All,
I have script was run on Redhat 9 (I put in /etc/rc.d/rc.local)
----snip---
EXT_IP="/sbin/ifconfig eth0 | grep inet | cut -d : -f 2 | cut -d \ -f 1"
INT_IP="/sbin/ifconfig eth1 | grep inet | cut -d : -f 2 | cut -d \ -f 1"
INTRANET="192.168.1.0/24"
iptables -A FORWARD -s $INTRANET -d ! $INT_IP -p tcp --dport 25 -j DROP
---snip---
But it is unable to run on SuSE 11.1 (I put in /etc/rc.d/boot.local)
Seems SuSE did not recognize the command EXT_IP="/sbin/ifconfig eth0 | grep inet | cut -d : -f 2 | cut -d \ -f 1"
Thanks a lot for your helps and advises.
Best regards,
Wong
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Follow-Ups:
- Re: [opensuse] Boot Script
- From: Manfred Hollstein
- Re: [opensuse] Boot Script
- Prev by Date: Re: [opensuse] Skrooge 0.5.1
- Next by Date: Re: [opensuse] Can use the incoming mailserver but not the outgoing mailserver.
- Previous by thread: Re: [opensuse] Flash Player Plugin in Firefox still doesnt work - Mac OS X 10.x and Ubuntu always works.
- Next by thread: Re: [opensuse] Boot Script
- Index(es):
Relevant Pages
|