You are not logged in.

#1 2007-09-09 19:11:19

chitoiup
Member
Registered: 2007-09-09
Posts: 12

Use Arch as a gateway

Hey,

I have read some of the Wiki articles on Sharing a connection, but I was not sure if those were the right ones for my setup. What is want to do is the following: I have two ethernet cards on my Linux box and a wireless router available. I want to make the router use the Linux box (Arch) as a gateway so that I can share its connection wirelessly with other computers.
Does anyone know how to accomplish this?

Thanks,
Robert.

Offline

#2 2007-09-09 19:52:10

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: Use Arch as a gateway

isp_modem -> eth0
eth1 -> router's  gateway port

then run firestarter

Offline

#3 2007-09-09 20:24:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Use Arch as a gateway

This may be irrelevant, but the principal function of a wireless router is to share its connection wirelessly with other computers. Why do you need an additional box between the router and the internet?

Offline

#4 2007-09-09 20:27:27

chitoiup
Member
Registered: 2007-09-09
Posts: 12

Re: Use Arch as a gateway

Because I want to use Arch as a server, and my router does not have any forwarding capabilities.

Offline

#5 2007-09-09 21:30:35

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Use Arch as a gateway

OK - thanks for clarifying that. From a security perspective, it's generally regarded as a bad idea to connect a server directly to the internet - but you probably already know that.

Offline

#6 2007-09-09 21:48:26

chitoiup
Member
Registered: 2007-09-09
Posts: 12

Re: Use Arch as a gateway

Yeah, but I do not have the resources to do another setup. The University policies also limit me in what I can do.
Firestarter worked like a charm. Thanks hacosta!

Offline

#7 2007-09-10 20:40:23

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

Re: Use Arch as a gateway

i have dialup and share that connection.....im using windows for that though. havent been able to get my dialup working in linux yet

but thats another reason


this is a signature

Offline

#8 2007-09-10 23:50:32

hungsonbk
Member
Registered: 2007-05-26
Posts: 105
Website

Re: Use Arch as a gateway

big_smile:DI also have my linux firewall, server, gateway in the same arch PC here, due to limit in money tongue:P. But it does not a matter if you set up you iptables correctly to do NAT as well as blocking unused ports. I am using dialup connection with speedtouch adsl modem, so you can easily set it up with ppp.

so my suggestion is on the arch gateway, you set up iptables and ppp to connect to the internet. With another ethernet interface, you connect to wireless router with network 172.16.0.0/24, for example. from the wireless router, you share connections with client PC by using ip address 10.0.0.0/24, for example. If you can setup you wireless router as a bridge, you need only one private network. At the arch gateway, you need to statically setup your routing table, with route command to point to your private network so that it can route traffic correctly. For example:
route add -net 10.0.0.0 netmask 255.255.255.0 gw 172.16.0.2

where 172.16.0.2 is the ip address of your wireless router.

We are archers, so it is better to stay away from the fucking stupid Microsoft Windows.

Cheers.

Offline

Board footer

Powered by FluxBB