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 08-06-2004, 09:47 AM   #1
adamkimber
LQ Newbie
 
Registered: Nov 2003
Location: UK
Posts: 7

Rep: Reputation: 0
IP Help with No-Nat and IPCOP


OK, I'm trying to set up IPCop (using it as a good NAT firewall and proxy) here. I have a block of IP's from my ISP and a DG814 so, using these together I thought I would be OK. Here is what I was wanting to do

DG814 <-------> (eth1) IPCOP (eth0) <--------> LAN (192.168.0.x)

Now, we are given the IP range xxx.xxx.207.128-xxx.xxx.207.143by our ISP with the Subnet Mask of 255.255.255.240. The DG814, however, usually picks up a different IP address, this being xxx.xxx.147.222! Should it do this? To try what I was doing, I gave the DG814 the LAN IP of xxx.xxx.207.129 (in my allocated range?) and the subnet 255.255.255.240. I then gave eth1 on the IPCOP box the IP xxx.xxx.207.130 and the subnet 255.255.255.240 although this then seemed to think that xxx.xxx.207.143 was it's broadcast address?

I'm at my wits end on trying to get this to work like this as I'm pretty sure that I have everything I need (IP's and Hardware) to get it to work, I'm just obviously not doing something right.

Thanks for any help you can offer, it will be greatly appreciated

Adam
 
Old 08-17-2004, 03:38 AM   #2
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
From the sounds of it you have more ips that you can use but anyway.
depending your your distribution the files may differ
setup eth1 to be 130 like you said, then eth0 to be something like 192.168.0.1
Modify the /etc/sysconfig/network-scripts/ifcfg-eth1
and there's an option for broadcast address change that 255.255.255.240 like your isp gave you and make sure that after you save the file and restart networking that you can ping the internet from there.
since this is a static ip assignment you need to setup the /etc/resolv.conf file for dns lookups as well.
After you get that done make sure at this point that you can get to the internet from here. like try ping etc.
then setup ipcop to do whatever you want.
 
Old 08-17-2004, 09:24 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Now, we are given the IP range xxx.xxx.207.128-xxx.xxx.207.143by our ISP with the Subnet Mask of 255.255.255.240. The DG814, however, usually picks up a different IP address, this being xxx.xxx.147.222! Should it do this?

It's a routing function to have different numbers.. .
Just like sending packets for google via an interface numbered 192.168.1.1
The DG814 needs to know where to send incoming packets to, and where to send outgoing packets to as well.
The static routes function does that.. making the DG814 just a step in the delivery process..
What internal ip number did it give itself? and what default gateway/upstream router?

You need to set a configuration that treats IPCOP as the destination for incoming packets, maybe even with multiple ip numbers on IPCOP.
I doubt IPCOP has the settings available to do this however, that's advanced stuff..

The other option is to configure the DG814 as the destination of the incoming packets, which requires it to NAT outgoing packets..

Last edited by peter_robb; 08-17-2004 at 09:28 AM.
 
  


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
Need IPCop to IpCop VPN assistance Freddde Linux - Networking 1 09-15-2005 02:28 PM
Susefirewall2 Nat Problem / nat 1:1 trubi Linux - Distributions 0 07-20-2004 05:50 AM
IPCop to IPCop VPN... furrie Linux - Networking 1 11-04-2003 12:40 PM
Can IPCop do inside,outside NAT? chort Linux - Networking 0 07-01-2003 06:25 PM
What's the difference between Linux-NAT and Sygate-NAT? yuzuohong Linux - Networking 0 08-07-2002 04:07 AM

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

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