1 MB + 1MB on One Linux Server

Discussion regarding the installation and configuration of Linux distributions.
Post Reply
sarthor
Battalion Quarter Master Havaldaar
Posts: 241
Joined: Wed Dec 24, 2003 2:36 am
Location: Pukhtoonistan
Contact:

1 MB + 1MB on One Linux Server

Post by sarthor »

Salam O Alykum!

I have 2 telefone lines having 1 mb DSL connections on Each,
How can run both Lines on on linux ubuntu server?
need a bit detail.


waiting....
Salam O Alykum.
Tefl E Maktab
-----------------------------
----- ----- ----- ------ ------ -------
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Re: 1 MB + 1MB on One Linux Server

Post by kbukhari »

sarthor wrote:Salam O Alykum!

I have 2 telefone lines having 1 mb DSL connections on Each,
How can run both Lines on on linux ubuntu server?
need a bit detail.


waiting....
Salam O Alykum.
use SNAT for both sources
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post by mudasir »

Salam...

Dear Lambda can you please tell me how to SNAT it...

looking forward for reply..
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
sarthor
Battalion Quarter Master Havaldaar
Posts: 241
Joined: Wed Dec 24, 2003 2:36 am
Location: Pukhtoonistan
Contact:

Post by sarthor »

mudasir wrote:Salam...

Dear Lambda can you please tell me how to SNAT it...

looking forward for reply..

Salam O Alykum,

Lambda??
Tefl E Maktab
-----------------------------
----- ----- ----- ------ ------ -------
ather_36
Naik
Posts: 97
Joined: Thu Jul 31, 2003 11:38 am
Location: karachi
Contact:

Post by ather_36 »

Salam Kbukhari
U mean configure iptables to use SNAT.Asume I have two ips addresses 1)202.192.168.1 (2) 202.192.168.2.So I define a these IPs in a iptables rules. I m right? Like this...
iptables -t nat -A POSTROUTING -j SNAT --to-source 202.192.168.1
iptables -t nat -A POSTROUTING -j SNAT --to-source 202.192.168.2


I think MASQUERADING will also work in this scenario...
Like
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE

Asuming eth1 and eth2 are my outgoing interface.
Actually I m also working in this scenario.But I needs help.
Thanks & Regards
Athar Hussain
sarthor
Battalion Quarter Master Havaldaar
Posts: 241
Joined: Wed Dec 24, 2003 2:36 am
Location: Pukhtoonistan
Contact:

Post by sarthor »

ather_36 wrote:Salam Kbukhari
U mean configure iptables to use SNAT.Asume I have two ips addresses 1)202.192.168.1 (2) 202.192.168.2.So I define a these IPs in a iptables rules. I m right? Like this...
iptables -t nat -A POSTROUTING -j SNAT --to-source 202.192.168.1
iptables -t nat -A POSTROUTING -j SNAT --to-source 202.192.168.2


I think MASQUERADING will also work in this scenario...
Like
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE

Asuming eth1 and eth2 are my outgoing interface.
Actually I m also working in this scenario.But I needs help.
Salam O Alykum,

For Example i got connected by my dsl dialer, and it assigned me ip 203.99.190.13 and gateway 203.99.190.1 While on the 2nd line my ip is 203.99.191.30 and gw is 203.99.191.1,
So what will be the gateway?
and there is only one ether in my linux computer for outgoing trafic (My User Lan).
Need more detail, because i cant afford to down my network for more than 30 minutes.

waiting .
Alwida
Tefl E Maktab
-----------------------------
----- ----- ----- ------ ------ -------
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

sure, i can help. but i have to ask -- why can't you search the forum, or use google? it's not like you're the first person to ask about this. heck, i can remember at least two other people who asked about this in 2007, in this forum.

help yourself.
Electronic media did worst with Lal Masjid waly.
what's that supposed to mean?
sarthor
Battalion Quarter Master Havaldaar
Posts: 241
Joined: Wed Dec 24, 2003 2:36 am
Location: Pukhtoonistan
Contact:

Post by sarthor »

lambda wrote:sure, i can help. but i have to ask -- why can't you search the forum, or use google? it's not like you're the first person to ask about this. heck, i can remember at least two other people who asked about this in 2007, in this forum.

help yourself.
Electronic media did worst with Lal Masjid waly.
what's that supposed to mean?
Salam O Alykum,
1st of all very very thanks for your help, Every time i found you helpful, I believe that you told me (also others) for helping ourselves, Next time i will try best to follow your instructions,
This time i really did search but i think search function of this forum is not very rich (may be i am wrong), And on the google i found many links, and i got confused. ..Selecting the exact howto or tutorial for the person like me is like a great deed, ;)
Electronic media did worst with Lal Masjid waly.
Removed this... Yes you havent told me for removing this,

Alwida
Tefl E Maktab
-----------------------------
----- ----- ----- ------ ------ -------
Post Reply