* OT: alias for a network card
@ 2004-07-15 8:21 Payal Rathod
2004-07-15 12:28 ` Erik Wikström
2004-07-15 13:40 ` Aleksandar Milivojevic
0 siblings, 2 replies; 5+ messages in thread
From: Payal Rathod @ 2004-07-15 8:21 UTC (permalink / raw)
To: netfilter
Hi,
Excuse for this OT question here. But I don't know where I can get an
answer. While doing NAT i need to have alias IPs for my router
machine like,
# ipconfig eth0:1 192.168.0.4
But these rules are lost once the machine is rebooted. How can I make
them permanent?
I thought of putting these in rc.local but it rather crude approach as
my firewall might be started before that. I use Mandrake Linux.
Thanks a lot in advance.
With warm regards,
-Payal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OT: alias for a network card
2004-07-15 8:21 OT: alias for a network card Payal Rathod
@ 2004-07-15 12:28 ` Erik Wikström
2004-07-18 13:14 ` Payal Rathod
2004-07-15 13:40 ` Aleksandar Milivojevic
1 sibling, 1 reply; 5+ messages in thread
From: Erik Wikström @ 2004-07-15 12:28 UTC (permalink / raw)
To: netfilter
On Thu, Jul 15, 2004 at 01:51:41PM +0530, Payal Rathod wrote:
> Hi,
> Excuse for this OT question here. But I don't know where I can get an
> answer. While doing NAT i need to have alias IPs for my router
> machine like,
> # ipconfig eth0:1 192.168.0.4
>
> But these rules are lost once the machine is rebooted. How can I make
> them permanent?
> I thought of putting these in rc.local but it rather crude approach as
> my firewall might be started before that. I use Mandrake Linux.
Find out what script starts the firewall and put the line before the
line starting the firewall. Or, put it in the firewall script. Or even
better, put it in the script that initializes your network card.
--
Erik Wikström
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OT: alias for a network card
2004-07-15 8:21 OT: alias for a network card Payal Rathod
2004-07-15 12:28 ` Erik Wikström
@ 2004-07-15 13:40 ` Aleksandar Milivojevic
1 sibling, 0 replies; 5+ messages in thread
From: Aleksandar Milivojevic @ 2004-07-15 13:40 UTC (permalink / raw)
To: Netfilter User Mailinglist
Payal Rathod wrote:
> Hi,
> Excuse for this OT question here. But I don't know where I can get an
> answer. While doing NAT i need to have alias IPs for my router
> machine like,
> # ipconfig eth0:1 192.168.0.4
>
> But these rules are lost once the machine is rebooted. How can I make
> them permanent?
> I thought of putting these in rc.local but it rather crude approach as
> my firewall might be started before that. I use Mandrake Linux.
It is OK to have firewall rules loaded before your interfaces are
configured. I would go a step further and say that it is recommended.
On most Linux distribution I saw that is exactly the order how things
are done during boot (first iptables, than network). This way you don't
have that one or two seconds gap when your machine/network is unprotected.
As for original question, check how and where your "normal" interfaces
are configured. On RedHat it is file ifcfg-IF_NAME (where X is
interface number, for example for eth0 file is ifcfg-eth0) in
/etc/sysconfig/network-scripts directory (so if you want virtual
interface on eth0, you just create ifcfg-eth0:1 file). Solaris does it
the same way (/etc/hostname.hme0, /etc/hostname.hme0:1 and so on). On
Mandrake it is probably something similar (when you find how the normal
interfaces are configured, virtuals are most likely configured the very
same way).
--
Aleksandar Milivojevic <amilivojevic@pbl.ca> Pollard Banknote Limited
Systems Administrator 1499 Buffalo Place
Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OT: alias for a network card
2004-07-15 12:28 ` Erik Wikström
@ 2004-07-18 13:14 ` Payal Rathod
2004-07-19 11:09 ` Saad Faruque
0 siblings, 1 reply; 5+ messages in thread
From: Payal Rathod @ 2004-07-18 13:14 UTC (permalink / raw)
To: netfilter
Hi,
On Thu, 15 Jul 2004 14:28:48 +0200, Erik Wikström
> Find out what script starts the firewall and put the line before the
> line starting the firewall. Or, put it in the firewall script. Or even
> better, put it in the script that initializes your network card.
I think I got it licked. BTW, is initializing IPs in /etc/rc.local a
bad practice?
With warm regards,
-payal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OT: alias for a network card
2004-07-18 13:14 ` Payal Rathod
@ 2004-07-19 11:09 ` Saad Faruque
0 siblings, 0 replies; 5+ messages in thread
From: Saad Faruque @ 2004-07-19 11:09 UTC (permalink / raw)
To: netfilter
rc.local is not the best place to place your initializing script
On Sun, 18 Jul 2004 18:44:12 +0530, Payal Rathod <payalrathod@gmail.com> wrote:
> Hi,
> On Thu, 15 Jul 2004 14:28:48 +0200, Erik Wikström
>
> > Find out what script starts the firewall and put the line before the
> > line starting the firewall. Or, put it in the firewall script. Or even
> > better, put it in the script that initializes your network card.
>
> I think I got it licked. BTW, is initializing IPs in /etc/rc.local a
> bad practice?
>
> With warm regards,
> -payal
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-07-19 11:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-15 8:21 OT: alias for a network card Payal Rathod
2004-07-15 12:28 ` Erik Wikström
2004-07-18 13:14 ` Payal Rathod
2004-07-19 11:09 ` Saad Faruque
2004-07-15 13:40 ` Aleksandar Milivojevic
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.