On Sun, Jan 01, 2006 at 09:55:53PM +0900, Osamu Aoki wrote:
> Hi,
> 
> Andrew, are you an active user of ipmasq?  Since I do not use it any
> more I am putting this on RFA.  Unfortunately, all previous volunteers
> failed to follow their words.  Here is my take on this bug below.
> 
> On Sun, Jan 01, 2006 at 01:49:11AM -0800, Andrew Pollock wrote:
> > Hi,
> > 
> > This is kind of related to this bug, so I've reopened it.
> > 
> > I have an interface with multiple addresses assigned to it with the ip(8)
> > command. These additional addresses aren't reported with ifconfig(8).
> > 
> > ipofif(8) doesn't report these addresses either, so the rules generated by
> > ipmasq do not allow traffic to/from these additional addresses.
> > 
> > e.g.:
> > 
> > [EMAIL PROTECTED]:/etc/ipmasq/rules$ ip a s dev eth0
> > 2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
> >     link/ether 00:08:02:52:49:d7 brd ff:ff:ff:ff:ff:ff
> >     inet 69.12.141.94/24 brd 69.255.255.255 scope global eth0
> >     inet 69.12.141.92/24 brd 69.12.141.255 scope global secondary eth0
> >     inet 69.12.141.93/24 brd 69.12.141.255 scope global secondary eth0
> >     inet6 fe80::208:2ff:fe52:49d7/64 scope link
> >        valid_lft forever preferred_lft forever
> 
> Yes, if you have fancy network setting, you need to use ip command under
> 2.6, I guess.
> 
> > [EMAIL PROTECTED]:/etc/ipmasq/rules$ /sbin/ifconfig eth0
> > eth0      Link encap:Ethernet  HWaddr 00:08:02:52:49:D7
> >           inet addr:69.12.141.94  Bcast:69.255.255.255  Mask:255.255.255.0
> >           inet6 addr: fe80::208:2ff:fe52:49d7/64 Scope:Link
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:1691069 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:1583279 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:1158411006 (1.0 GiB)  TX bytes:1001610728 (955.2 MiB)
> 
> Yep.  Good-old ipconfig only understands eth0 on 69.12.141.94.
> 
> > [EMAIL PROTECTED]:/etc/ipmasq/rules$ /usr/sbin/ipofif eth0
> > 69.12.141.94
> 
> That is quite natural since ipmasq is build around ifconfig etc.
> 
> ipofif is nothing but:
> 
> /sbin/ifconfig $1 | sed -n -e'/inet addr:/s/^.*inet addr:\([0-9.]*\).*$/\1/p'
> 
> So, if this is the case, this bug is wontfix if I maintain this package.
> 
> If you are willing to propose proper alternative, it will be
> interesting.  You can adopt this :-)  This is my pre-approval seeing
> your competent bug report.
> 
> But considering that change will change package dependency, I think you
> should make new package ipmasq2 based on that script.  Then you can also
> drop complicated 2.0, 2.2 kernel support and clean up code for sure.
> Oh, if you care to recreate this package, please make this work without
> /usr mounted.  That will make many issues of NFS mount.
> 

Sounds like a fun challenge, I might just take you up on it once I get a bit
more settled in my new location.

regards

Andrew


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to