* Can iptables do this?
@ 2002-05-20 10:23 eduardg
0 siblings, 0 replies; 7+ 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] 7+ messages in thread
[parent not found: <OF48E1B4A6.4F38281F-ONC1256BBF.004241A8-C1256BBF.004241D4@upc.es>]
[parent not found: <OFE9A4EDE9.418F3246-ONC1256BC0.0035D17B-C1256BC0.0035D196@upc.es>]
* Re: public ip on LAN
@ 2004-01-02 17:19 Amit Pasari
2004-01-02 17:27 ` Fabien LE BLEVEC
0 siblings, 1 reply; 7+ 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] 7+ messages in thread
* Re: public ip on LAN
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
0 siblings, 1 reply; 7+ messages in thread
From: Fabien LE BLEVEC @ 2004-01-02 17:27 UTC (permalink / raw)
Cc: netfilter
In the PREROUTING chain, you said for example :
iptables -A PREROUTING -s 203.122.51.179 -j DNAT --to 172.16.1.2
iptables -A PREROUTING -s 203.122.51.180 -j DNAT --to 172.16.1.3
....
or more accurate :
iptables -A PREROUTING -s 203.122.51.181 -p tcp --dport 80 -j DNAT --to
172.16.1.4
...
I think it should be correct for your configuration.
Don't forget to authorize the traffic in the FORWARD chain .
Fabien
Amit Pasari a écrit :
> 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] 7+ messages in thread
* Re: public ip on LAN
2004-01-02 17:27 ` Fabien LE BLEVEC
@ 2004-01-02 18:30 ` Craig Steadman
2004-01-02 18:46 ` Michael Gale
0 siblings, 1 reply; 7+ messages in thread
From: Craig Steadman @ 2004-01-02 18:30 UTC (permalink / raw)
To: fleblevec; +Cc: Netfilter
The issue with redirecting web traffic using DNAT is that if
any of the web pages have absolute links then they fail to
work for clients connecting from the internet.
Does anyone know of an apache module that can be configured to
parse and change the anchors in a html page on the fly, for this
scenario ?
Craig.
On Sat, 2004-01-03 at 01:27, Fabien LE BLEVEC wrote:
> In the PREROUTING chain, you said for example :
>
> iptables -A PREROUTING -s 203.122.51.179 -j DNAT --to 172.16.1.2
> iptables -A PREROUTING -s 203.122.51.180 -j DNAT --to 172.16.1.3
> ....
> or more accurate :
> iptables -A PREROUTING -s 203.122.51.181 -p tcp --dport 80 -j DNAT --to
> 172.16.1.4
> ...
>
> I think it should be correct for your configuration.
>
> Don't forget to authorize the traffic in the FORWARD chain .
>
>
> Fabien
>
>
> Amit Pasari a écrit :
>
> > 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] 7+ messages in thread
* Re: public ip on LAN
2004-01-02 18:30 ` Craig Steadman
@ 2004-01-02 18:46 ` Michael Gale
2004-01-02 19:07 ` Can iptables do this ? Ramoni
0 siblings, 1 reply; 7+ messages in thread
From: Michael Gale @ 2004-01-02 18:46 UTC (permalink / raw)
To: netfilter
Hello,
Can you provide an example ? We have a web serve behind the firewall. I am not sure what type of links our web master is using. But we have not had any problems.
We have links to other web servers that our out side of our network on the web site that work.
Michael.
On Sat, 03 Jan 2004 02:30:32 +0800
Craig Steadman <spinout@yakbox.shacknet.nu> wrote:
> The issue with redirecting web traffic using DNAT is that if
> any of the web pages have absolute links then they fail to
> work for clients connecting from the internet.
> Does anyone know of an apache module that can be configured to
> parse and change the anchors in a html page on the fly, for this
> scenario ?
>
> Craig.
>
> On Sat, 2004-01-03 at 01:27, Fabien LE BLEVEC wrote:
> > In the PREROUTING chain, you said for example :
> >
> > iptables -A PREROUTING -s 203.122.51.179 -j DNAT --to 172.16.1.2
> > iptables -A PREROUTING -s 203.122.51.180 -j DNAT --to 172.16.1.3
> > ....
> > or more accurate :
> > iptables -A PREROUTING -s 203.122.51.181 -p tcp --dport 80 -j DNAT --to
> > 172.16.1.4
> > ...
> >
> > I think it should be correct for your configuration.
> >
> > Don't forget to authorize the traffic in the FORWARD chain .
> >
> >
> > Fabien
> >
> >
> > Amit Pasari a écrit :
> >
> > > 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
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
--
Michael Gale
Network Administrator
Utilitran Corporation
^ permalink raw reply [flat|nested] 7+ messages in thread
* Can iptables do this ?
2004-01-02 18:46 ` Michael Gale
@ 2004-01-02 19:07 ` Ramoni
2004-01-02 19:19 ` Antony Stone
0 siblings, 1 reply; 7+ messages in thread
From: Ramoni @ 2004-01-02 19:07 UTC (permalink / raw)
To: netfilter
Hi,
can iptables do a temp rule ?
I mean, I need to create rules that will be deleted after x seconds or minutes.
The time module does not remove the rules as it is not supposed to do so.
Is there a module that I could say:
iptables -I FORWARD -s a.b.c.d -j DROP -m xxxxx --minutes 2
and the rule will be deleted after 2 minutes os something like that ?
thanx
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can iptables do this ?
2004-01-02 19:07 ` Can iptables do this ? Ramoni
@ 2004-01-02 19:19 ` Antony Stone
0 siblings, 0 replies; 7+ messages in thread
From: Antony Stone @ 2004-01-02 19:19 UTC (permalink / raw)
To: netfilter
On Friday 02 January 2004 7:07 pm, Ramoni wrote:
> Hi,
> can iptables do a temp rule ?
> I mean, I need to create rules that will be deleted after x seconds or
> minutes. The time module does not remove the rules as it is not supposed to
> do so. Is there a module that I could say:
> iptables -I FORWARD -s a.b.c.d -j DROP -m xxxxx --minutes 2
> and the rule will be deleted after 2 minutes os something like that ?
No.
Use cron, at, or sleep.
Antony.
--
Your work is both good and original. Unfortunately the parts that are good
aren't original, and the parts that are original aren't good.
- Samuel Johnson
Please reply to the list;
please don't CC me.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-01-02 19:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-20 10:23 Can iptables do this? eduardg
[not found] <OF48E1B4A6.4F38281F-ONC1256BBF.004241A8-C1256BBF.004241D4@upc.es>
[not found] ` <200205201336.OAA14181@slate.rockstone.co.uk>
2002-05-20 17:05 ` eduardg
[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
-- 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox