All of lore.kernel.org
 help / color / mirror / Atom feed
* Can iptables do this?
@ 2003-06-12  3:04 Wei Ming Long
  2003-06-12  4:05 ` J Webb
  0 siblings, 1 reply; 11+ messages in thread
From: Wei Ming Long @ 2003-06-12  3:04 UTC (permalink / raw)
  To: netfilter-devel, <Harald 

Hi Everyone,
I have posted this question before but got no response, so I'm posting it
again, please pardon me if you have seen this before.
I have a wireless network with my linux machine as a gateway between the
internet & my internal wireless network. I have iptables running on the
gateway & also a dhcp server to serve out ip addresses to the client laptops.
I also run the Squid proxy server on the gateway to proxy http requests. I use
iptables to redirect http traffic to Squid and to do nat for the internal
network.
My question is this: what if a laptop with a preconfigured static ip address
comes into the internal network or worse, 2 client laptops with identical
preconfigured static ip addresses enter into network, can iptables do nat
based on mac address <--> public ip address mapping besides the usual private
ip address <--> public ip address mapping?

Please help. Thanks.

Best regards
Matthew

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: public ip on LAN
@ 2004-01-02 17:19 Amit Pasari
  2004-01-02 17:27 ` Fabien LE BLEVEC
  0 siblings, 1 reply; 11+ messages in thread
From: Amit Pasari @ 2004-01-02 17:19 UTC (permalink / raw)
  To: netfilter

Thanks John,
Let me explain
on My LAN i have ip address - 172.16.1.1
subnet - 255.255.0.0
on My WAN i have ipaddress - 203.122.51.178
subnet - 255.255.255.240

Now , my clients want to have public / Live ip instead of private ips which 
i am giving as  many of my clients uses webserver , and other applications 
which people from outside world needs to access .
I can redirect  ports for one clients but how about 10 clients wanting the 
same .
So i need to give them a public ip so that all the traffic can be 
redirected their ip .


Regards
Amit

At 09:54 PM 1/2/04, you wrote:
>On Fri, 2004-01-02 at 11:30, Amit Pasari wrote:
> > Hello,
> > I am using Redhat 8.0 with iptables to provide my client internet services
> > . Everything is going well .
> > i have been giving private ips of 172.16.0.0 series to my clients .
> > But now some of my clients need public ips . i do have many public ips 
> with
> > me .so can somebody tell how can i give public ips to my clients .
> >
> > Thanks & Regards
> > Amit
> > Orangeinfoways.com
>
>Could you please clarify what you mean by giving ips to your clients?
>Thanks - John
>--
>John A. Sullivan III
>Chief Technology Officer
>Nexus Management
>+1 207-985-7880
>john.sullivan@nexusmgmt.com
>---
>If you are interested in helping to develop a GPL enterprise class
>VPN/Firewall/Security device management console, please visit
>http://iscs.sourceforge.net




^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Can iptables do this?
@ 2003-06-12  7:33 Wei Ming Long
  2003-06-13 15:17 ` Harald Welte
  0 siblings, 1 reply; 11+ messages in thread
From: Wei Ming Long @ 2003-06-12  7:33 UTC (permalink / raw)
  To: jon_webb, netfilter-devel

Correct me if I'm wrong, when the laptop with the preconfigured static ip
comes into the network, it will do a arp broadcast to find the mac address of
it's gateway, so can iptables capture this arp packet (at the same time reply
to this arp request), extract the mac address and keep this in a table so that
the next time this same laptop sends a http request packet out onto the
network, the mac address in the packet header is extracted & mapped to the
private ip address before resending this same http request packet out into the
internet cloud. When the http reply packet comes back, iptables will look up
the mac address <--> private ip table and then send this reply packet back to
the laptop. 

Is this all possible? or is it possible to add code to netfilter to achieve
this? I'm prepared to write code to netfilter to do this if not already
possible but just want to make sure that this feature or functionality is not
already present so that I don't have to do redundant job.

Thanks
Matthew


>>> J Webb <jon_webb@binary-one.com> 06/12/03 12:05PM >>>
That is more of a Mobile-IP type issue. A laptop with any old ip address 
will not be able to talk to the rest of your network (or gateway) 
properly unless it has an IP on that network. ARP, among other things, 
will be completely broken. The laptops with the pre-configured static 
IP's would have to set themselves to use your internal gateway, and 
unless they are in the same network, they will have no route to that, or 
any other, host. I believe IPTables can't help you here.

- Jon

Wei Ming Long wrote:

>Hi Everyone,
>I have posted this question before but got no response, so I'm posting it
>again, please pardon me if you have seen this before.
>I have a wireless network with my linux machine as a gateway between the
>internet & my internal wireless network. I have iptables running on the
>gateway & also a dhcp server to serve out ip addresses to the client
laptops.
>I also run the Squid proxy server on the gateway to proxy http requests. I
use
>iptables to redirect http traffic to Squid and to do nat for the internal
>network.
>My question is this: what if a laptop with a preconfigured static ip
address
>comes into the internal network or worse, 2 client laptops with identical
>preconfigured static ip addresses enter into network, can iptables do nat
>based on mac address <--> public ip address mapping besides the usual
private
>ip address <--> public ip address mapping?
>
>Please help. Thanks.
>
>Best regards
>Matthew
>
>  
>

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <OFE9A4EDE9.418F3246-ONC1256BC0.0035D17B-C1256BC0.0035D196@upc.es>]
[parent not found: <OF48E1B4A6.4F38281F-ONC1256BBF.004241A8-C1256BBF.004241D4@upc.es>]
* Can iptables do this?
@ 2002-05-20 10:23 eduardg
  0 siblings, 0 replies; 11+ messages in thread
From: eduardg @ 2002-05-20 10:23 UTC (permalink / raw)
  To: netfilter

Hi,

I want to built a network that allows http navigation to any host that is 
plugged on it, without any change on its configuration.

For example my network is 1.2.3.0 and I want that a host with an IP address 
10.9.8.7 can navigate. First of all, the host will send arp request to find the 
MAC of its DNS server (I'll have to redirect it to my DNS), then it will look 
for its default gateway, etc (I can't work with mobile IP nor change any host 
configuration).

Not any host is allowed to do this, only hosts with known MACs.


Has anybody implemented a solution for a similar challenge? Any idea?

Thank you in advance.


Edu


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-01-02 19:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-12  3:04 Can iptables do this? Wei Ming Long
2003-06-12  4:05 ` J Webb
  -- strict thread matches above, loose matches on Subject: below --
2004-01-02 17:19 public ip on LAN Amit Pasari
2004-01-02 17:27 ` Fabien LE BLEVEC
2004-01-02 18:30   ` Craig Steadman
2004-01-02 18:46     ` Michael Gale
2004-01-02 19:07       ` Can iptables do this ? Ramoni
2004-01-02 19:19         ` Antony Stone
2003-06-12  7:33 Can iptables do this? Wei Ming Long
2003-06-13 15:17 ` Harald Welte
     [not found] <OFE9A4EDE9.418F3246-ONC1256BC0.0035D17B-C1256BC0.0035D196@upc.es>
     [not found] ` <200205211157.MAA18294@slate.rockstone.co.uk>
2002-05-21 12:27   ` can " Sven Koch
2002-06-13 17:25     ` Antony Stone
     [not found]   ` <3CEA8069.EA2F5F84@spamless.genwax.com>
     [not found]     ` <200205211742.SAA19742@slate.rockstone.co.uk>
2002-05-21 23:48       ` Edu
     [not found] <OF48E1B4A6.4F38281F-ONC1256BBF.004241A8-C1256BBF.004241D4@upc.es>
     [not found] ` <200205201336.OAA14181@slate.rockstone.co.uk>
2002-05-20 17:05   ` Can " eduardg
2002-05-20 10:23 eduardg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.