LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-23-2010, 07:51 AM   #1
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Rep: Reputation: 27
Question Linux as a route/firewall


Hi All,

OS= CentOS 5.5 64bit

Need help in setting up a Linux as a route/firewall.

My ISP has given me WAN and LAN public IPs

WAN IPs
119.226.11.246/30 (2 IPs)

LAN IPs
119.226.11.249/29 (6 IPs)

My ISP told me that 119.226.11.245 is routed to 119.226.11.246 cause this are wan IP and cannot be used directly so we have to do routing to get access to 119.226.11.245

I have no knowledge of WAN IPs
Do I need to have a WAN port on my linux firewall? Or how do I do the setup?
 
Old 06-23-2010, 11:21 AM   #2
ggeagle
LQ Newbie
 
Registered: Jun 2008
Location: DaeJeon,Korea
Posts: 5

Rep: Reputation: 0
Because of my poor english,my answer may have some fault.

See your modem,then it may have RJ-45port,then you have no need of complex design.

ISP's comment means
"Between two connection ISP's side endpoint ip is 245 and your side is 246."

One example,below command may not exactly I'm not linux user.


Eth0 : 246/30 =>can't use any other IP
eth1 : 249/29 =>can use 249~254
eth2 : 192.168.1.1/24

route add -net 119.226.11.248 netmask 255.255.255.248 eth1
route add -net 192.168.1.0 netmask 255.255.255.0 eth2
route add default gw 119.226.11.246

You can connect two switching hubs each eth1 and eth2
interface.

There may be some other net design,but if you need to use public clients & private clients,then seperate interface using will remove much more complex.

This style design may need some considerance about BUS I/O and inturrept mechanism.

콩글리쉬로 할려니 죽겠네::

this is Korean Alphabet.English is very hard;;;

bye

Last edited by ggeagle; 06-23-2010 at 11:44 AM.
 
Old 06-23-2010, 03:14 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Lans should use private IP addresses.

http://en.wikipedia.org/wiki/Private_network

Last edited by jefro; 06-23-2010 at 03:15 PM.
 
  


Reply

Tags
firewall, lan, wan



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
No route to host - no firewall Ghodmode Linux - Networking 1 04-19-2007 10:01 AM
proftp server behind firewall (no route to host) carlp Linux - Software 3 08-18-2005 10:21 AM
Can route through bypass firewall? Randomandy Linux - Networking 1 08-15-2005 08:33 PM
Problem with exporting/firewall , RPC: No route to host pinguscot Linux - Networking 1 11-05-2004 05:29 AM
firewall 3 905 NICs route commands to make it actually work? piratebiter Linux - Networking 1 09-04-2003 09:52 AM

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

All times are GMT -5. The time now is 08:12 AM.

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