Networking Forums

Networking Forums > Computer Networking > Linux Networking > HOW TO use linux as a router ???

Reply
Thread Tools Display Modes

HOW TO use linux as a router ???

 
 
dm
Guest
Posts: n/a

 
      04-11-2004, 03:00 PM
Doea anyone know if I can share my desktop's PPP connection through
a wirless LAN, i.e. how to use a RedHat 9 as a router between a wireless
LAN and the internet connection ?
THANKS
--
dm
 
Reply With Quote
 
 
 
 
Skylar Thompson
Guest
Posts: n/a

 
      04-11-2004, 07:50 PM
On Sun, 11 Apr 2004 15:00:23 GMT, dm <(E-Mail Removed)> wrote:
> Doea anyone know if I can share my desktop's PPP connection through
> a wirless LAN, i.e. how to use a RedHat 9 as a router between a wireless
> LAN and the internet connection ?



Stick these lines in your firewall script:

modprobe iptable_nat
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t mangle -L -n -v

If you want transparent Squid proxying, use this line too:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

--
-- Skylar Thompson ((E-Mail Removed))
-- http://www.cs.earlham.edu/~skylar/
 
Reply With Quote
 
Solbu
Guest
Posts: n/a

 
      04-12-2004, 05:37 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On søndag 11. april 2004, 21:50 Skylar Thompson tried to express an opinion:

> If you want transparent Squid proxying, use this line too:
>
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128


Do I understand this correct if I say this will FORCE the use of a proxy
regardless of (missing) proxy settings in the browsers (throghout the network)?

- --
Solbu - http://www.solbu.net
Remove 'ugyldig' for email
PGP key ID: 0xFA687324
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAeisLT1rWTfpocyQRAvsQAJsHoqgQxK1fwfIqKxshgt oFYJiyYACg1HsV
rUU8gZHNuRrZf5pbCeaKk4k=
=q2Ce
-----END PGP SIGNATURE-----
 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      04-12-2004, 03:01 PM
In article <gWpec.6022$(E-Mail Removed)> Solbu <(E-Mail Removed)> wrote:

>> If you want transparent Squid proxying, use this line too:
>> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT \
>> --to-port 3128


> Do I understand this correct if I say this will FORCE the use of a proxy
> regardless of (missing) proxy settings in the browsers (throghout the
> network)?


Only for those connecting to port 80 of a remote machine, which is certainly
the bulk of browser connections. All other ports (such as 21, 443, 8080, etc.)
will be connected exclusive of any proxy, since they don't qualify for the
REDIRECT conditions as stated.


tony

--
use hotmail for any email replies


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any Documentaion about How Linux Networking IP stack looklike between Linux PC (single NIC card) and Router with multiple Network interfaces (LAN and WAN)? santa19992000@yahoo.com Linux Networking 0 02-11-2007 09:19 PM
If I replace my existing Linksys box with Linux Router, how can I know what kind of Routing to be enabled on my Linux Box? santa19992000@yahoo.com Linux Networking 3 01-06-2005 01:18 PM
Noob linux questions. Vector Linux, tightvnc and a router tHatDudeUK Linux Networking 1 03-07-2004 03:18 PM
Linux box (ex-router) causing duplicates on Windows/Linux LAN Jamin Linux Networking 1 01-26-2004 12:08 PM
Linux Router/Firewall - Linux Client problem Fry Linux Networking 6 09-06-2003 02:25 AM



1 2 3 4 5 6 7 8 9 10 11