All of lore.kernel.org
 help / color / mirror / Atom feed
* "connection tracking" and "Connection state"?
@ 2003-04-02  1:18 SB CH
  2003-04-02  3:37 ` Joel Newkirk
  2003-04-02 15:33 ` Intercom@x
  0 siblings, 2 replies; 4+ messages in thread
From: SB CH @ 2003-04-02  1:18 UTC (permalink / raw)
  To: netfilter

Hello, all.

connection tracking(stateful inspection) has a relation with this menu(make 
config)?

"Connection tracking match support"

But when I deselect this menu, I can use connection tracking like 
NEW,ESTABLISHED,RELATED  etc.
I think that only "Connection state match support" menu is required to use 
this function.

then what is the function and meaning of the "Connection tracking match 
support"?


Thanks in advance.



_________________________________________________________________
확인하자. 오늘의 운세 무료 사주, 궁합, 작명, 전생 가이드   
http://www.msn.co.kr/fortune/default.asp  



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

* Re: "connection tracking" and "Connection state"?
  2003-04-02  1:18 "connection tracking" and "Connection state"? SB CH
@ 2003-04-02  3:37 ` Joel Newkirk
  2003-04-02 15:33 ` Intercom@x
  1 sibling, 0 replies; 4+ messages in thread
From: Joel Newkirk @ 2003-04-02  3:37 UTC (permalink / raw)
  To: SB CH, netfilter

On Tuesday 01 April 2003 08:18 pm, SB CH wrote:
> Hello, all.
>
> connection tracking(stateful inspection) has a relation with this
> menu(make config)?
>
> "Connection tracking match support"
>
> But when I deselect this menu, I can use connection tracking like
> NEW,ESTABLISHED,RELATED  etc.
> I think that only "Connection state match support" menu is required to
> use this function.
>
> then what is the function and meaning of the "Connection tracking
> match support"?

As I just found out (Thanks Martin Josefsson!) there is available a 
conntrack match.  It lets you match more than the three conntrack states 
you mentioned - you can match conntrack status like ASSURED, SEEN_REPLY, 
etc, as well as 'states' SNAT and DNAT (matches packets which have been 
SNATted or DNATted) and also match the original pre-SNAT/pre-DNAT IPs.

http://netfilter.org/documentation/HOWTO//netfilter-extensions-HOWTO-3.html#ss3.3

j



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

* Re: "connection tracking" and "Connection state"?
  2003-04-02  1:18 "connection tracking" and "Connection state"? SB CH
  2003-04-02  3:37 ` Joel Newkirk
@ 2003-04-02 15:33 ` Intercom@x
  2003-04-02 21:04   ` Joel Newkirk
  1 sibling, 1 reply; 4+ messages in thread
From: Intercom@x @ 2003-04-02 15:33 UTC (permalink / raw)
  To: Netfilter

Hi all,

Is it possible to redirect any url request to another address, from an
internal nat address requesting a valid url to a internal specific address?
Something like  iptables -t nat -A PREROUTING -p tcp -d
192.168.0.0/255.255.0.0 --dport 80 -j DNAT --to-destination 192.168.5.254:80
?

Thanks.

Mauricio S. Mudrik
IT Director
Intercomax - Your Office in Transit
Cybertools - Tools for Cyber Spaces
Aeroshopping.net - The (future) Brazilian Airports Portal Services
55 11 6445-2399 / 2388 / 2622



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

* Re: "connection tracking" and "Connection state"?
  2003-04-02 15:33 ` Intercom@x
@ 2003-04-02 21:04   ` Joel Newkirk
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Newkirk @ 2003-04-02 21:04 UTC (permalink / raw)
  To: Intercom@x, Netfilter

On Wednesday 02 April 2003 10:33 am, intercomax@yahoo.com.br wrote:
> Hi all,
>
> Is it possible to redirect any url request to another address, from an
> internal nat address requesting a valid url to a internal specific
> address? Something like  iptables -t nat -A PREROUTING -p tcp -d
> 192.168.0.0/255.255.0.0 --dport 80 -j DNAT --to-destination
> 192.168.5.254:80 ?

Yes.  However with your scenario above, if the client making the request 
is in 192.168.0.0/16 then it will connect directly to the host, not 
through the firewall.  If the destinations being redirected are public 
IPs with a local client, and the DNAT target is also local, then it is 
also necessary to add:
iptables -t nat -A POSTROUTING -p tcp --dport 80 -d 192.168.5.254 -j SNAT 
--to {FirewallLocalIP}
So that replies will be sent to the firewall to be unDNATted (and now 
unSNATted) to show the IP the client expects a reply from.

j



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

end of thread, other threads:[~2003-04-02 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-02  1:18 "connection tracking" and "Connection state"? SB CH
2003-04-02  3:37 ` Joel Newkirk
2003-04-02 15:33 ` Intercom@x
2003-04-02 21:04   ` Joel Newkirk

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.