i have a Ethernet adsl modem connected to my pc. now i want to share my internet using proxy. is it possible to have 2 pci lan cards on one pc, so that i could connect one to the Ethernet modem and the other for LAN (to the second pc) and enable proxy and share the same internet line. presently mine is a PPOE connection and i dont have a ip address. pls help

Dani AI

Generated

Two PCI NICs in one PC is a perfectly normal way to share an ADSL connection. The machine that runs the PPPoE dialer must be the gateway — until that dialer authenticates you won't see a public IP on the WAN side (this explains the "no IP" observation in the original post). Both using the PC as a gateway/proxy or putting a cheap NAT router between modem and LAN are valid approaches; pointed to built‑in sharing and correctly noted a router is often the easiest option.

Windows (quick workflow)

  • Connect NIC1 to the ADSL modem (this becomes the WAN interface) and run the PPPoE connection on that PC so it gets the WAN IP.
  • Give NIC2 a static private address (for example 192.168.0.1/24) and either run a DHCP server or assign the client a static IP (e.g., 192.168.0.2, gateway 192.168.0.1).
  • Enable Windows network sharing or install a proxy/NAT package if per‑user logging/caching is needed.
    As noted, each NIC must be configured for a different network/subnet to avoid conflicts.

Linux (example NAT commands)
Enable forwarding and masquerade the PPP link:

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -i eth1 -o ppp0 -j ACCEPT
iptables -A FORWARD -i ppp0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT

Troubleshooting & cautions

  • If the modem is a router, either enable bridge mode for a PC/router PPPoE client or let the modem handle PPPoE and place the PC behind it.
  • Some ISPs restrict PPPoE to one session or bind by MAC—check with the ISP if problems occur.
  • Direct PC-to-PC links historically needed a crossover cable; most modern NICs support auto‑MDIX.
  • Keep a firewall on the gateway and only expose services intentionally.

This addresses the original setup and gives immediately usable steps for both Windows and Linux gateways.

Recommended Answers

All 4 Replies

Yes,

It's called Internet Connection Sharing.

If none of the above links help, just Google "internet connection sharing" and you'll find all the help you'll ever need.

J_

yes, but each LAN card should be set for different connections.

Ethernet adsl modem connected to my pc. now i want to share my internet using proxy. is it possible to have 2 pci lan cards on one pc, so that i could connect one to the Ethernet modem and the other for LAN (to the second pc) and enable proxy and share the same internet line.

Ethernet adsl modem connected to my pc. now i want to share my internet using proxy. is it possible to have 2 pci lan cards on one pc, so that i could connect one to the Ethernet modem and the other for LAN (to the second pc) and enable proxy and share the same internet line.

it sure is ,but why not just buy a router ,
http://www.linksys.com/servlet/Satellite?c=L_Product_C1&childpagename=US%2FLayout&cid=1175243233028&pagename=Linksys%2FCommon%2FVisitorWrapper&lid=3302896164B02

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.