Link to home
Start Free TrialLog in
Avatar of Shaun Wingrin
Shaun WingrinFlag for South Africa

asked on

PPPOE with 2 adsl modems in bridge mode on CENTOS 5.1 server?

Hi,

The setup: CENTOS 5.1 with Asterisk server <-subnet 1-><-Mikrotik Router-><-subnet2-><ADSL Modem1>
                                                            -><-Mikrotik Router-><-subnet3-><ADSL Modem2>

I wish to use PPPOE on the CENTOS 5.1 server so as to ensure the Asterisk is effectively not behind a NAT.
The Linux CENTOS 5.1 server should do the PPPOE dialup . Username and password supplied. Both modems are set to PPPOE passthrough mode.

How do I setup the CENTOS server and the asterisk server please?
ASKER CERTIFIED SOLUTION
Avatar of kyleb84
kyleb84
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of meverest
Hi,

the obvious question is: WHERE do you want to connect the pppoe TO?

Cheers.
shaun,

PPPoE is a layer 2 protocol, and as such will not work over the "<-subnet 1-><-Mikrotik Router-><-subnet2-><ADSL Modem1>", you will have to have the ADSL modems on the same LAN segment:

ADSL Modem 2
|
CentOS->Mikrotik->Mikrotik
|
ADSL Modem 1


Is it possible to set it up this way?
It may be possible if there is a bridge created across the router ports.

But in the end, it does very much depend on what is the intended destination end of the PPPoE.

Cheers.

"But in the end, it does very much depend on what is the intended destination end of the PPPoE."

"Both modems are set to PPPOE passthrough mode."

I'd say the end would be an ADSL connection Mike, connecting back to a PPPoE client on the CentOS box, I'm also assuming he wants both ADSL connections to terminate on the CentOS server?

Is that correct Shaun?
If that's the intent (PPPoE connection to an 'ISP' account) then it should be possible to do by bridging the router ports on the mikrotik between subnet 1 & subnet 2.

That *would*, of course, essentially defeat purpose of having a firewall there at all, and so it would probably be better to connect the server to a VLAN on the subnet1 port of the mikrotik router.  You can do that by adding a vlan port on the server (don't ask me HOW to do it, but I'm sure oit can be done ;-) then bridge the vlan on the mikrotik to the subnet 2 port.  Then run the PPPoE on the vlan to bring up a connection to the ISP.

Cheers.
I agree with Mike's solution.

As for the Linux VLAN part, CentOS has a handy little tool called vconfig:

# vconfig add eth0 10

This would add a VLAN 10 interface on eth0, the new interface would be called eth0.10 - you can use it just like a normal interface (example):

# ifconfig eth0.10 192.168.10.1/24 up

Avatar of Shaun Wingrin

ASKER

I need only connect through the one ADSL. I can move the ADSL to a second network port on the Asterisk server. This woudl obviously make it a lot simpler. How can I protect the CENTOS 5.1 server in this case.

If I use the VLAN option described will I have any firewall protection from the Mikrotik? Will the VALN put a lot of extra load on the CENTOS server? At the moment subnet 1 is /24 . Excude my ignorace but if I make a VLAN will I need to change the subnet 1 to e.g 255.255.255.128 and then use the same for the VLAN on the CENTOS 5.1?

The whole reason for this setup change is to enable the sip.conf redirect=yes option to work. Is there any way to get it to work with the present setup?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial