Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have seen many posts explaining bridging eth and wlan interfaces. I would like to know if it is possible to bridge ppp0 interface (a USB modem) and eth0. I have a working internet connection through ppp0 interface. I want a DHCP server set up listening at the eth0 interface and assigning addresses to share internet connection received from ppp0.

share|improve this question

3 Answers 3

Bridging to a WAN link is a bad idea. What you need is a proper proxyarp setup

share|improve this answer

In practice you want it to do IP masquerating / NAT, rather than bridging. DHCP is fairly straightforward: install the dhcp server packagae (try "dhcps" or "dhcp3-server"), configure for the ethernet range.

share|improve this answer

You really, REALLY don't want to bridge your LAN to your WAN - this means that the server will try to copy ALL your LAN traffic across the WAN.

I want ... to share internet connection

Then you want to ROUTE the traffic. Unless all the machines on the network are using IP addresses assigned by your service provider (and therefore have secure firewalls configured) then you also need to implement masquerading on the router. However a better solution is to run application proxies on the internet connected device (e.g. squid for HTTP, leafnode for nntp, any MTA for SMTP, fetchmail+local imap server for pop/imap).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.