Operating System - Linux
1822894 Members
3632 Online
109645 Solutions
New Discussion юеВ

how to use the ifup-post command

 
SOLVED
Go to solution
Rick Garland
Honored Contributor

how to use the ifup-post command

Hi all:

Got RH AS 2.1 server on PE 1650.
I have configured with maximum firewall and allow only ssh and http in. I need to be able to query the nameserver I have listed in the /etc/resolv file but the firewall blocks it. Also says to use the ifup-post file to allow for nameserver queries. Anybody know how to use the ifup-post file?
3 REPLIES 3
Huc_1
Honored Contributor
Solution

Re: how to use the ifup-post command

On my system iptables I have put the following
to punch trought the firewall to the isp nameserver

-A -i eth0 -p udp -m udp -s xxx.xxx.xxx.xxx --sport 53 -d 0/0 -j ACCEPT

XXX.XXX.XXX.XXX to be remplace with your nameserver ip address

Hope this help you

J-P
Smile I will feel the difference
Olivier Drouin
Trusted Contributor

Re: how to use the ifup-post command

/etc/sysconfig/network-scripts/ifup-post

ifdown-post and ifup-post ├в Contains commands to be executed after an interface is brought up or down.

I didnt find docs but the script is short and not very complex. Just check what it is doi
Stuart Browne
Honored Contributor

Re: how to use the ifup-post command

The docs are "/usr/share/initscripts-*/sysconfig.txt".

It states (simply) that it brings up routes (using ifup-routes), aliases (ifup-aliases) and a few other bits an pieces.

The last few lines on my RH8 box look for an executable file '/sbin/ifup-local'. If you have sepecific things you want done aftewards, I'd suggest creating one of these.

It gets passed the device name as it's only parameter.
One long-haired git at your service...