I need to set up following network architecture :
Internet
^
+-----------------+ | +------------------+
| Centos6-1 | | | Centos6-2 |
| +---- eth0 + ----+ | |
| (br0)| | | |
| +---- eth1 +----------------+ eth0 |
+-----------------+ +------------------+
( cable connection )
Two public IP's are to be configured like follows :
+ **eth0** and **eth1** of **Centos6-1 are to be configured as a bridge
with IP1
- **Centos6-1** can be accessed with IP1
- **eth0** of **Centos6-2** is configured with IP2
- any request destined to IP2 will flow through **Centos6-1**
How can i accomplish this feat?
There is a service running in the second server. This service will bind to
IP2. what will happen
If i do the following in box1:
brctl addbr br0
ifdown eth0
ifdown eth1
ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
ifconfig br0 IP1 ****
would it do what i want?
Thanks in advance.
--
-aft
On 4/16/2012 8:04 AM, Arif Hossain wrote:> I need to set up following network architecture : > > > Internet > ^ > +-----------------+ | +------------------+ > | Centos6-1 | | | Centos6-2 | > | +---- eth0 + ----+ | | > | (br0)| | | | > | +---- eth1 +----------------+ eth0 | > +-----------------+ +------------------+ > ( cable connection ) > > > Two public IP's are to be configured like follows : > > + **eth0** and **eth1** of **Centos6-1 are to be configured as a bridge > with IP1 > - **Centos6-1** can be accessed with IP1 > - **eth0** of **Centos6-2** is configured with IP2 > - any request destined to IP2 will flow through **Centos6-1** > > How can i accomplish this feat?Not sure if I'm understanding this.... You're trying to present a service running on box 2 to the internet through box 1's public interface? (securely) If so I might have a look at this software.... http://www.delegate.org/delegate/ You'll be able to create a reverse proxy on box 1 to box 2 or any services running on your internal network, etc.