From: =?ISO-8859-1?Q?Jorge_D=E1vila?= Subject: Re: MASQUERADE MAIL SERVER Date: Thu, 23 Jul 2009 12:27:57 -0600 Message-ID: References: <4A6897BD.8000805@ideay.net.ni> <4A68A8D7.1090607@ideay.net.ni> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=2dEQaSX9EnPy02kQEu1fb44vWV65/3q3hbDos6ns9RY=; b=YtgyIhjYd0qzRUOv2ZypeAyBAE2aio1oTmPrlrJw5oRRIfq2jD+Vhw2FN/0e1KRI4z JLJFQufYhIvja2UjVlnrU8B7sc3Umn4nwHZYsEOrzGKt6/kmxvd7EtVBkVVxt0ihz9zL hqlgMHdcdV4fmHElYBTUXyx9pBlRhtf0afdDI= In-Reply-To: <4A68A8D7.1090607@ideay.net.ni> Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: "Wilbert J. Rojas O." Cc: netfilter@vger.kernel.org According to the RFC 3330 the address range 10.0.0.0 - 10.255.255.255 is a private adress range. Jorge D=E1vila. 2009/7/23 Wilbert J. Rojas O. : > Thanks but i have only one internet provider. I =A0was trying with SN= AT and > DNAT but i failed with this rules: > > iptables -t nat -A PREROUTING -p all -d 200.9.190.25 -i eth0 -j DNAT = --to > 10.24.54.96 > iptables -t nat -A POSTROUTING -p all -d 10.24.54.96 -o eth0 -j SNAT = --to > 200.9.190.25 > > from mail server enter in my web browser this URL http://www.cualesmi= ip.com/ > and always get out to INTERNET through 200.9.190.20 and not through > 200.9.190.25. > > Any idea ?? > > Regards > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > Ing. Wilbert Jos=E9 Rojas Ochoa. > Administrador de Sistemas > Ideay ~ Equipos y Sistemas. > Managua, Nicaragua. > Telf. +(505) 2277-4000 Ext: 115. > Fax =A0 +(505) 2277-4411. > USA: =A0+(305) 735-8364. > Cel. =A0+(505) 8883-2877. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > Jorge D=E1vila escribi=F3: >> >> Good morning, >> >> You need acomplish something similar to this >> >> http://lartc.org/lartc.html#LARTC.RPDB.MULTIPLE-LINKS >> >> Best regards, >> >> Jorge D=E1vila. >> >> On Thu, Jul 23, 2009 at 11:02 AM, Wilbert J. Rojas >> O. wrote: >> >>> >>> =A0Hello, >>> >>> My Network configuration is that: >>> >>> >>> ISP >>> | >>> | >>> | >>> | =A0*eth0 200.9.190.20* *eth0:1* 200.9.190.21 *eth0:2* 200.9.190.2= 3 >>> *eth0:3* >>> 200.9.190.24 *eth0:4* 200.9.190.25 >>> LINUX BOX >>> | =A0*eth1 10.24.54.1/32* >>> | >>> | >>> LAN =A010.24.54.0/24 =A0gw 10.24.54.1 >>> | >>> | >>> MAIL SERVER 10.54.24.96/32 =A0gw 10.24.54.1 >>> >>> >>> >>> All machines to get out to INTERNET through my LINUX BOX included m= y MAIL >>> SERVER but i want that MAIL SERVER to get out to INTERNET with IP P= ublic >>> Address different like 200.9.190.25 and my all rest network get out >>> through >>> 200.9.190.20 >>> >>> The rules i have applied like this but i don't know how to do that: >>> >>> /sbin/iptables -t nat -A PREROUTING -i eth1 -s 10.24.54.0/255.255.2= 55.0 >>> -d >>> 0/0 -p tcp --dport 80 -j REDIRECT --to-port 8080 >>> /sbin/iptables -t nat -A PREROUTING -i eth1 -s 10.24.54.0/255.255.2= 55.0 >>> -d >>> 0/0 -p tcp --dport 8080 -j REDIRECT --to-port 8080 >>> >>> /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE >>> >>> /sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 200.9.190.20 >>> --dport >>> 25 -j DNAT --to-destination 10.24.54.96:25 >>> /sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 200.9.190.20 >>> --dport >>> 110 -j DNAT --to-destination 10.24.54.96:110 >>> /sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 200.9.190.20 >>> --dport >>> 143 -j DNAT --to-destination 10.24.54.96:143 >>> >>> >>> Any help or suggestions ?? >>> >>> Regards. >>> >>> >>> >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >>> Ing. Wilbert Jos=E9 Rojas Ochoa. >>> Administrador de Sistemas >>> Ideay ~ Equipos y Sistemas. >>> Managua, Nicaragua. >>> Telf. +(505) 2277-4000 Ext: 115. >>> Fax =A0 +(505) 2277-4411. >>> USA: =A0+(305) 735-8364. >>> Cel. =A0+(505) 8883-2877. >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >>> >>> >>> >>> -- >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >>> Ing. Wilbert Jos=E9 Rojas Ochoa. >>> Administrador de Sistemas >>> Ideay ~ Equipos y Sistemas. >>> Managua, Nicaragua. >>> Telf. +(505) 2277-4000 Ext: 115. >>> Fax =A0 +(505) 2277-4411. >>> USA: =A0+(305) 735-8364. >>> Cel. =A0+(505) 8883-2877. >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >>> >>> -- >>> To unsubscribe from this list: send the line "unsubscribe netfilter= " in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.htm= l >>> >>> >> >> >> >> > --=20 Jorge Isaac D=E1vila L=F3pez +505 8430 5462 jorgedavilalopez@gmail.com --- Esta tierra es Linux. En las noches calladas puede escucharse a las m=E1quinas Windows re-inici=E1ndose...