From: Jamie Pratt <jamie@nucdc.org>
To: netfilter@lists.netfilter.org
Subject: Re: problems with alias
Date: Fri, 16 Jul 2004 09:05:29 -0400 [thread overview]
Message-ID: <40F7D299.8010803@nucdc.org> (raw)
In-Reply-To: <12a1fd421dcf7411b2acdd8a5da18f59@147.162.2.222>
Batstru wrote:
> Hi all!
> I changed my server running redhat9 (kernel 2.4.x) with a new one with
> fedora core 2 (kernel 2.6.x): each one has 2 ethernet interfaces, so I copy
> network configuration fron rh9 to fc2
>
> eth0 --> 192.168.1.254 / 255.255.255.0
> eth1 --> 82.186.92.90 / 255.255.255.254
> eth1:1 --> 82.186.92.91 / 255.255.255.254
> eth1:2 --> 82.186.92.92 / 255.255.255.254
> eth1:3 --> 82.186.92.93 / 255.255.255.254
> eth1:4 --> 82.186.92.93 / 255.255.255.254
> also, I copy and apply iptables configuration but it does not work well.
> now iptables doesn\'t apply rules to virtual interfaces, eth1...eth4.
> a line of my configiguration files is:
> -A INPUT -p tcp -m tcp -m state -d 82.186.92.91 --dport 20 --state NEW -j
> ACCEPT
> I tried different rules configuration but it still not work.
>
> can you help me?
> --
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>
> Sponsor:
> Lerboristeria.biz: per la tua bellezza e salute il miglior assortimento
> di prodotti erboristici ed oggettistica online
>
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2152&d=20040716
>
>
Have you tried to use the iproute2 suite for aliasing instead of
ifconfig? I believe the ifconfig way is considered "deprecated". Then,
specify your rules by interface and/or ip and it should work properly -
maybe the old method only works in iptables using the interface name now?
example:
## old ip aliasing
##/sbin/ifconfig eth0:0 192.168.0.1
##/sbin/ifconfig eth0:1 192.168.0.2
## New IP aliasing using ip tool from iproute2 package:
/sbin/ip addr add 192.168.0.1/24 brd + dev eth0
/sbin/ip addr add 192.168.0.2/24 brd + dev eth0
regards,
jamie
next prev parent reply other threads:[~2004-07-16 13:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-16 10:00 problems with alias Batstru
2004-07-16 10:45 ` Antony Stone
2004-07-16 10:50 ` George Alexandru Dragoi
2004-07-16 13:05 ` Jamie Pratt [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-07-16 12:47 Batstru
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40F7D299.8010803@nucdc.org \
--to=jamie@nucdc.org \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.