LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2004, 07:33 AM   #1
freelinuxcpp
Member
 
Registered: Jul 2003
Posts: 129

Rep: Reputation: 15
simple routing rules


hello every 1
here is my lan :

[[ISP]]______serial0[Cisco router]Ethernet0______eth0[LINUX]eth1___||LAN||

{internet}..................................{LAN}

the provider from where i got the LINK E1 brings me 1 class C of public address (254 machines) ; my lan is set as this :
router defaul gw : the ISP serial
ip route $mylan gw Ethernet0

then the LINUX BOX do a masquerading for the clients with provate address
the other clients who want to have a public address just put a public one and set the router as default gw

what i want to do is to oblige everybody to use the linux as default gw even those who have a public one , in other words , make a real router with my linux box i thought about adding a new interface (eth2) and set a public address for it and then add a line such :
route add net $public class C gw $Ip_of_ETH2
then set some acls in the router to prevent ppl tp use is as default gw
i need some advices about how to set the linux box !
any help would be welcome
thnx
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Routing - not working jsinfcva Linux - Networking 5 12-15-2004 09:08 PM
simple rules iptables ftp and pop/smtp steve_babbage Linux - Security 9 12-04-2003 06:14 PM
Need basic routing rules + a little port forwarding. Pcghost Linux - Networking 1 03-08-2003 11:21 PM
Simple routing nightmare rodo Linux - Networking 1 11-13-2002 01:14 PM
Sendmail - routing messages rules barDo Linux - General 3 07-27-2001 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration