Re: IPF, NAT or NIC



Freeco wrote:
So it means that i will need 2 more NIC's in my gateway?

|---------<pc>
|
ISP>-----------<Gateway>-----<Switch>-----<pc>
|
|_________<pc>

Why all pc's can't be in one subnet? I'll be happy with one subnet,

Ok. One of us is confused, but I don't know who yet :)

A 'subnet' is a term used to describe a portion of an IP address space,
where each device in that space can communicate with one another without
using a router:

192.168.1.0/24 is a subnet, so hosts 192.168.1.1 through 192.168.1.254
can 'speak' to each other without using a router. If you have more than
one PC, you need a 'switch' or hub to physically connect all of those
devices, so they can all speak to each other. (fwiw, I cringe at the
term subnet).

In the diagram above, you need two NICs in the gateway. One goes to the
ISP, and the other 192.168.1.2 goes to the switch. The rest of the
computers also plug into the switch. If all of the devices have
192.168.1.x, they are all in the same subnet.

i don't
need more. I tried this:

ISP x.x.88.17>-----------<x.x.88.20 Gateway 192.168.1.2>----------<pc cable
unplugged 192.168.1.7>?

You need what's known as a 'cross-over' cable to connect the PC to the
Gateway directly. The first sentence in this link describes it well:

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


I want to use this one:

|---------<pc 192.168.1.5>

|
ISP x.x.88.17>-----------<x.x.88.20 Gateway
192.168.1.2>-----<Switch>-----<pc 192.168.1.6>

|

|_________<pc 192.168.1.7>


The diagram got mangled, but from what I can tell, this is the same as
the diagram I left at the top of this message.

The gateway will work like firewall and nat. Maybe i have wrong settings on
my pc?

You do. Although technically it will work, you have in your gateway:

192.168.1.2 255.255.255.0

...but on the pc:

192.168.1.7 255.255.255.128:

----PC Settings----
IP: 192.168.1.7
Mask: 255.255.255.128 (same in rc.conf)
Gateway: 192.168.1.2
Dns: x.x.88.17
Dns: 192.168.1.2

I'm not convinced that there still isn't a cabling issue,. I don't use
NAT, so perhaps someone else can help with any config issues, but I
would find out/fix what is causing the traffic to be received on the
wrong interface first.

Also, I just noticed in your original post that there appears to be
another clerical error. Again, I don't know ipnat, but I would suspect
that this:

map fxp0 192.168.0.0/16 -> 0/32

should really be this:

map fxp0 192.168.0.0/24 -> 0/32

Aside from that, are you sure that this entry shouldn't be:

map rl0 192.168.0.0/24 -> 0/32

? Again, I don't know ipnat, but to me, in the fxp0 entry, it looks like
you are trying to map the 192 space coming INTO fxp0 (which in your
original post is the NIC that faces the ISP, not the internal network).
If this is how ipnat looks at this, then this is also a problem.

Steve

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Relevant Pages

  • Re: PPTP Site-to-Site VPN problem
    ... My understanding has always been that if you route between 2 or more different subnets then there has to be a gateway defined. ... If routing on a single subnet then no gateway needs to be defined. ... the RRAS service on the servers. ...
    (microsoft.public.windows.server.networking)
  • Re: RRAS server separating two subnets - one subnet cannot reach the Internet and computers cant
    ... I have a small lab with a bunch of servers setup on two different subnets, 192.168.1.1 is the gateway for one and 172.16.1.1 is the gateway for the other. ... The RRAS server can reach the Internet as well as the computers in the 192.168.1.0/24 subnet. ... You will need to add some extra routing to your gateway router to get it running. ...
    (microsoft.public.windows.server.networking)
  • Re: DHCP clients; where does the preffered routes come from?
    ... The gateway to get to the 192.168.1.x subnet from 192.168.2x subnet is ... to be access by the DHCP clients on 192.168.1.x subnet and those computer ... This router will deliver the packet to ...
    (microsoft.public.windows.server.networking)
  • Re: public/private IPs and subnet masks
    ... and gateway 132.132.132.254 ... You want to setup your new network printer with a private IP. ... I wonder if it matters which subnet gateway the printer should get ...
    (microsoft.public.windowsxp.network_web)
  • Re: can an alias address be routed through?
    ... The other interface sis0 has an address of 192.169.1.254 with a subnet ... BUT from the 192.169 network It still doesnt ... If i add a route ... In other words, no matter what your netmask, your gateway ...
    (comp.unix.bsd.openbsd.misc)

Loading