Title: RE: [Masq] Using IP aliasing along with port redirect?

Hi Jamin,

Actually, after trying it out, you are correct.  There isn't a port conflict when using the IP aliasing.  I don't know why I didn't try

it out to begin with, but I just assumed there would be an issue.  That's what I get for assuming.

Thanks,
Gabriel

    -----Original Message-----
    From:   Jamin W.Collins [SMTP:[EMAIL PROTECTED]]
    Sent:   Tuesday, February 19, 2002 10:09 PM
    To:     [EMAIL PROTECTED]
    Subject:        Re: [Masq]  Using IP aliasing along with port redirect?

    /* HINT: Search archives @ http://www.indyramp.com/masq/ before posting!
    /* ALSO: Don't quote this header. It makes you look lame :-) */

    On Tue, 19 Feb 2002 19:10:27 -0600
    "Gabriel Davidov" <[EMAIL PROTECTED]> wrote:

    > I have a client/server program in which the server always sends tcp packets
    > to a hard coded 1720 port.  I would like to be
    > able to run multiple clients on one machine and have tried using ip aliasing
    > along with redirecting packets to get this done.
    >
    > I have added an extra IP alias, giving me two ip addresses on the box.  My
    > ifconfig looks like the following:
    >
    > eth0      Link encap:Ethernet  HWaddr 00:ff:27:ff:18:76 
    >           inet addr:xxx.xxx.xxx.42  Bcast:xxx.xxx.xxx.63
    (snip)
    > eth0:0    Link encap:Ethernet  HWaddr 00:ff:27:ff:18:76 
    >           inet addr:xxx.xxx.xxx.43  Bcast:xxx.xxx.xxx.63
    (snip)
    > The first client runs on eth0/port 1720 and runs fines.  I am running a
    > second client on port 1721 using the eth0:0 ip address.  When the server
    > attempts to make a tcp connection back to xxx.xxx.xxx.43 port 1720, I want
    > to redirect it to port 1721 instead since my first client is already using
    > port 1720.  To do this, I have setup an ipchains rule as follows:

    Silly question, but why are you trying to use a different port on the second IP?  IIRC, since this is a different IP (even though it is aliased), it has it's own set of ports thus 1720 isn't used on eth0:0.  Someone please correct me if I'm wrong here.  However, I use aliases myself and haven't run into a port conflict of any kind.

    Jamin W. Collins
    _______________________________________________
    Masq maillist  -  [EMAIL PROTECTED]
    Admin requests can be handled at http://www.indyramp.com/masq-list/ --
    THIS INCLUDES UNSUBSCRIBING!
    or email to [EMAIL PROTECTED]

    PLEASE read the HOWTO and search the archives before posting.
    You can start your search at http://www.indyramp.com/masq/
    Please keep general linux/unix/pc/internet questions off the list.

Reply via email to