Linux Netfilter discussions
 help / color / mirror / Atom feed
* more than 1 source ip
@ 2002-11-26 10:00 Wasim Bashir
  2002-11-26 10:18 ` Unknown, Raymond Leach
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Wasim Bashir @ 2002-11-26 10:00 UTC (permalink / raw)
  To: netfilter

Hi,

how do i select more than 1 source IP, what i want to do is allow vnc access
to an internal win2k box from 2 different ip addresses, how do you do this,
at the moment i'm using :

/sbin/iptables -A PREROUTING -t nat -p tcp -s <outside IP> -d <ip of my
machine>  --dport 5800 -j DNAT --to 10.0.0.199:5800

Any help would be much appreciated.

Thanks

Wasim



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Neighbour table overflow
@ 2005-01-05  0:42 ro0ot
  2005-01-05  2:25 ` Jason Opperisano
  0 siblings, 1 reply; 14+ messages in thread
From: ro0ot @ 2005-01-05  0:42 UTC (permalink / raw)
  To: netfilter

Hi,

I had setup my bridge (br0) as below: -

ifconfig eth0 0.0.0.0
ifconfig eth5 0.0.0.0

brctl addbr br0

brctl addif br0 eth0
brctl addif br0 eth5

brctl stp br0 on

ifconfig br0 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255

I had my firewall scripts setup correctly.

Once I connect both the interface (eth0 and eth5) to my network.  I 
can't ping to my router (connect to eth0) or ping to my other IP 
addresses (connect to eth5).  I check around and found out some messages 
pops up in /var/log/syslog file as below: -

Jan  2 10:44:22 fw01 kernel: ipt_tcpmss_target: bad length (64 bytes)
Jan  2 10:44:32 fw01 last message repeated 11 times
Jan  2 12:27:08 fw01 kernel: Neighbour table overflow.
Jan  2 12:27:11 fw01 last message repeated 9 times
Jan  2 12:27:13 fw01 kernel: NET: 10 messages suppressed.
Jan  2 12:27:13 fw01 kernel: Neighbour table overflow.
Jan  2 12:27:18 fw01 kernel: NET: 27 messages suppressed.
Jan  2 12:27:18 fw01 kernel: Neighbour table overflow.

Once I disconnect the cable from the eth5 interface, I can ping to my 
router.  I try to reconnect the cable back to the eth5 interface and run 
a ping to my router.  As the result, I can't ping the router and the 
similar messages pops up in the /var/log/syslog file.

How can I resolve this issue?

Regards,
ro0ot






^ permalink raw reply	[flat|nested] 14+ messages in thread
* Neighbour table overflow
@ 2005-03-23 14:08 Sebastiao Antonio Campos (GWA)
  2005-03-23 14:23 ` Jason Opperisano
  0 siblings, 1 reply; 14+ messages in thread
From: Sebastiao Antonio Campos (GWA) @ 2005-03-23 14:08 UTC (permalink / raw)
  To: Netfilter list, Sertys

After I had applied the solution bellow I got the follwing msg error:

Neighbour table overflow.

Tks


----- Original Message ----- 
From: "Sebastiao Antonio Campos (GWA)" <sa.campos@datasulsp.com.br>
To: "Netfilter list" <netfilter@lists.netfilter.org>; "Sertys"
<sertys@supportivo.org>
Sent: Tuesday, March 22, 2005 9:51 PM
Subject: Re: Two netwok cards to access the internet.


> Thanks.
>
> It is working good.
>
>
>
> ----- Original Message ----- 
> From: "Sertys" <sertys@supportivo.org>
> To: "Netfilter list" <netfilter@lists.netfilter.org>
> Sent: Tuesday, March 22, 2005 7:24 PM
> Subject: Re: Two netwok cards to access the internet.
>
>
> On Tue, 22 Mar 2005 18:54:26 -0300, Sebastião Antônio Campos
> <sa.campos@datasulsp.com.br> wrote:
>
> Well, that's easy. When you know the ports you want to map through the
> interfaces, just do
>
> iptables -t nat -A POSTROUTING -m multiport -p tcp -s 172.17.1.8 --dports
> 25,110,1723,1701,47 -o eth0 -j MASQUERADE
> iptables -t nat -A POSTROUTING -s 172.17.0.0/16 -o eth2 -j MASQUERADE
> or even better
> iptables -t nat -A POSTROUTING -s 172.17.0.0/16 -o eth2 -j SNAT
> --to-source $ETH2_IP
>
> Those are simple states, you might add --syn or -m state, it's a choice of
> yours anyway.
>
>
> > Hi!
> >
> > I have the following:
> >
> > A RedHat 9.0 with 3 Network cards: One we use in local network (eth1)
> > and the other (eth0 and eth2)  to access the internet.
> >
> > I'd like to separate the traffic. In the eth0 use only with the e-mail
> > server (pop, smtp, 1723, 1701 and protocol 47) and the eht0 with others
> > traffis (http, https, msn....).
> >
> > I tried
> >
> > iptables -t nat -A POSTROUTING -o eth2 -s 172.17.1.8 -j MASQUERADE
> > (--this ip addrs is pop and smtp server)
> > iptables -t nat -A POSTROUTING -o eth0 -s 172.17.0.0/16 -j MASQUERADE
> >
> > But when I did this I could not access the port 1723, 1701 and protocol
> > 47 using the eth2.
> >
> > I tried too use only iptables -t nat -A POSTROUTING -o eth2 -s
> > 172.17.0.0/16 -j MASQUERADE
> >
> > And I got the same prob.
> >
> > If I use iptables -t nat -A POSTROUTING  -s 172.17.0.0/16 -j MASQUERADE
> >
> > I will get a success access. Only when I use iptables -t nat -A
> > POSTROUTING  -s 172.17.0.0/16 -j MASQUERADE (without -o eth2 or -o
eth0).
> >
> >
> > Who could help me?
> >
> > Thanks
> >
> >
> > Sebastiгo Antфnio Campos
> > Infojoi Computadores Ltda
> > Joinville -SC - R. Iririъ, 3587
> > Cml. (47) 437-0796 - Cel. (47) 9927-5349
> > tiao@infojoi.com.br
> > http://www.lupusnet.com.br
>
>
>
> -- 
> www.supportivo.org
>
> I can't stop myself checking for pigs in the outlets. Everybody thinks i'm
> a punk, cause of the hairstyle(220V).
> end
>



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

end of thread, other threads:[~2005-03-23 14:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-26 10:00 more than 1 source ip Wasim Bashir
2002-11-26 10:18 ` Unknown, Raymond Leach
2002-11-26 10:53 ` Erdal Mutlu
2002-11-26 11:04 ` Erdal Mutlu
2002-11-26 14:40 ` Ben Russo
2002-11-26 18:39   ` Neighbour table overflow g_netfilter
2002-11-26 18:38     ` Ard van Breemen
2002-11-28 16:40       ` Roberto Nibali
2002-11-27  4:08     ` Arnt Karlsen
2002-11-26 22:49 ` more than 1 source ip Stewart Thompson
  -- strict thread matches above, loose matches on Subject: below --
2005-01-05  0:42 Neighbour table overflow ro0ot
2005-01-05  2:25 ` Jason Opperisano
2005-03-23 14:08 Sebastiao Antonio Campos (GWA)
2005-03-23 14:23 ` Jason Opperisano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox