LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-19-2004, 02:11 AM   #1
Divinition
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
firewall-jay disable internal routing and loopback


Yao

I have 2 questions.

Is it possible in jay to disable internal routing. I have 2 local networks. I want them both to have access to the internet, but i dont want jay to route packets between the them.

and for the second question.
i have setup a portmap for port 80 to a server. This works fine for users that connect from outside the LAN. But if i type the external ip of the router from inside the LAN, i get nothing. On my old hardware router, this worked, so i guess it is possible.

Both of these most likely need custom settings and iptables
Could anyone please help me out
 
Old 03-19-2004, 05:18 AM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
what is an external router from inside the LAN?
 
Old 03-19-2004, 09:33 AM   #3
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I've never used firewall-jay so I don't know if it can be done in there. It can be done using iptables, however. I know firewal-jay uses iptables, but I can't tell you anything more past that. You would just deny any type of forwarding or input from one network to the other,. but make sure you allow forwarding from those networks to the outside world. If your router has 3 nics on it then you would probably deny and allow based on which nic it came from.

On the 2nd question, I don't think that firewalls or routers are really supposed to act as your old router did. Some of them are set up like that for convenience, however. It may be possible to do by adding your own iptable rule but I'm not sure.
 
Old 03-19-2004, 11:54 AM   #4
Divinition
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I did some research in iptables and the first problem works now
But whatever I do, I can't get the loopback to work.
 
Old 03-19-2004, 11:56 AM   #5
Divinition
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Hmmm perhaps i could fix that with a DNS setting
 
Old 03-19-2004, 12:19 PM   #6
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Is your loopback problem and your 2nd question the same thing?

If so, you are correct about having to add an internal DNS entry that points to the internal address of what you are trying to hit. If you try to do http://127.0.0.1 on your router then it will go to the router and NOT what is defined in your forwarding section of iptables. You may be able to create a rule where the input interface is lo and that forwards port 80 to you internal IP. I've never tried that so I don't know.

Or are you having trouble with loopback in general? Do you have this in your iptable definitions?
iptables -A INPUT -i lo -p all -j ACCEPT
 
Old 03-19-2004, 12:31 PM   #7
Divinition
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Original Poster
Rep: Reputation: 0
hmmm that might work

my problem is that

http://commandcrew.cjb.net
works from the internet as you might notice.
but it doesn't work if i type it on my lan.
 
Old 03-19-2004, 01:24 PM   #8
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Yes, I think the best thing for you to do is to set up an internal DNS server that everybody looks to first before they look at your ISP's DNS servers. This is what we do at the organization I am with. This is probably the best thing to do because you can now start setting up different host names for your internal networks. So IMHO the DNS enty for your internal network is the best thing to do.
 
Old 03-19-2004, 01:42 PM   #9
Divinition
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Do i have to add a new zone called cjb.net?
and set a subdomain called commandcrew
or is it possible to just set commandcrew.cjb.net to point to the local webserver?

I am rather new to settings up DNS servers
 
Old 03-19-2004, 01:46 PM   #10
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I believe you need to do it the first way you mentioned.
 
  


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
Routing on my internal network. Milkman00 Linux - Networking 11 09-02-2005 02:30 PM
internal modem loopback address sumathi Linux - Hardware 3 07-28-2005 06:50 AM
Routing between internal subnets teamchachi Linux - Networking 2 05-11-2005 07:21 AM
no loopback device in routing table KingNothing Linux - Networking 3 05-02-2004 02:08 AM
Internal Routing Saris Linux - Newbie 12 06-24-2003 11:30 PM

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

All times are GMT -5. The time now is 04:49 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