* some dumb questions
@ 1999-07-20 10:30 Lennert Buytenhek
0 siblings, 0 replies; 5+ messages in thread
From: Lennert Buytenhek @ 1999-07-20 10:30 UTC (permalink / raw)
To: linux-mm
Hi all,
Some dumb questions from a dumb person..
In vm_operations_struct there are pointers for (*advise), (*nopage),
(*wppage), et cetera. wppage is never used or called by any code
(copy-on-write is the default behaviour). Why is this? What if I want
my own wppage handler? Having the fn ptr member but not using it
doesn't make sense, IMHO. Also, I believe (*advise) isn't used
either.
Some other small things:
1. struct vm_area_struct -> struct vm_area ?
2. struct vm_operations_struct -> struct vm_area_operations ?
3. /dev/sysvipc/shm/1234 or /proc/sysvipc/shm/1234 ??
(This last suggestion just might start a holy war.... :-)
Thanks,
Lennert Buytenhek
<buytenh@dsv.nl>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Some dumb questions...
@ 2002-11-03 7:32 Joel Linuxdude
2002-11-03 12:36 ` Martin Josefsson
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Joel Linuxdude @ 2002-11-03 7:32 UTC (permalink / raw)
To: netfilter-devel
I was referred to this list by one of the Netfilter guys on order to gleen
some information needed to write a decent
tutorial/reference guide.
WARNING: POSSIBLE DUMB QUESTIONS. (But, ask me if I care!)
QUESTION: Would a packet created on the Netfilter PC first
go through the OUTPUT chain and then through POSTROUTING?
If so, what TABLE??? NAT? What about FILTER? I assume:
NetFilter system -> (nat)OUTPUT -> (nat)POSTROUTING -> Eth0 -> Internet
QUESTION: Absolutely everything coming INTO an interface
first goes to (nat)PREROUTING, right?
QUESTION: Netfilter PC has 3 workstations over Eth1 and they
are SNATing through Eth0 and out to the internet. What if
somebody conversing with the workstation over...say...
IRC gets the IP of the workstation (It would be the Netfilter
PC's IP) and pings it.....Of course, it would be pinging
the Netfilter PC and NOT the workstation, right? The workstation
would not even see any ICMP packets at all, right?
QUESTION: Where is the most effective place to stop spoofed
packets or block a port?
A) -t nat PREROUTING ???
B) -t filter INPUT (for local) and -t filter FORWARD (for LAN)?
C) Either A or B would work fine.
D) None. You're way off.
THANK YOU VERY MUCH! These answers will help me out a lot.
Joel
_________________________________________________________________
Choose an Internet access plan right for you -- try MSN!
http://resourcecenter.msn.com/access/plans/default.asp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Some dumb questions...
2002-11-03 7:32 Some dumb questions Joel Linuxdude
@ 2002-11-03 12:36 ` Martin Josefsson
2002-11-04 11:05 ` Harald Welte
2002-11-04 16:00 ` Oskar Andreasson
2 siblings, 0 replies; 5+ messages in thread
From: Martin Josefsson @ 2002-11-03 12:36 UTC (permalink / raw)
To: Joel Linuxdude; +Cc: Netfilter-devel
On Sun, 2002-11-03 at 08:32, Joel Linuxdude wrote:
> I was referred to this list by one of the Netfilter guys on order to gleen
> some information needed to write a decent
> tutorial/reference guide.
>
> WARNING: POSSIBLE DUMB QUESTIONS. (But, ask me if I care!)
Please take these questions to the netfilter mailinglist, not the
development mailinglist. They have nothing to do with development.
--
/Martin
Never argue with an idiot. They drag you down to their level, then beat
you with experience.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Some dumb questions...
2002-11-03 7:32 Some dumb questions Joel Linuxdude
2002-11-03 12:36 ` Martin Josefsson
@ 2002-11-04 11:05 ` Harald Welte
2002-11-04 16:00 ` Oskar Andreasson
2 siblings, 0 replies; 5+ messages in thread
From: Harald Welte @ 2002-11-04 11:05 UTC (permalink / raw)
To: Joel Linuxdude; +Cc: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 2567 bytes --]
On Sun, Nov 03, 2002 at 02:32:34AM -0500, Joel Linuxdude wrote:
> I was referred to this list by one of the Netfilter guys on order to gleen
> some information needed to write a decent tutorial/reference guide.
Joel, I'm happy that you are trying to contribute some documentation.
But I have to agree with the point raised by Martin...
> WARNING: POSSIBLE DUMB QUESTIONS. (But, ask me if I care!)
Questions are not dumb. But you could have obtained (and still can!) the
anwers without raising this issue on the list again.
> QUESTION: Would a packet created on the Netfilter PC first
> go through the OUTPUT chain and then through POSTROUTING?
> If so, what TABLE??? NAT? What about FILTER? I assume:
> NetFilter system -> (nat)OUTPUT -> (nat)POSTROUTING -> Eth0 -> Internet
This has been answered over and over again. please check the list archives.
Once you have understand the underlying architecture, it should become
obvious anyway.
> QUESTION: Absolutely everything coming INTO an interface
> first goes to (nat)PREROUTING, right?
you seem to confuse netfilter hooks with chain names. Yes, everything
goes to the netfilter NF_IP_PRE_ROUTING hook. Whataver happens next depends
on your setup/configuration/...
> QUESTION: Netfilter PC has 3 workstations over Eth1 and they
> are SNATing through Eth0 and out to the internet. What if
> somebody conversing with the workstation over...say...
> IRC gets the IP of the workstation (It would be the Netfilter
> PC's IP) and pings it.....Of course, it would be pinging
> the Netfilter PC and NOT the workstation, right? The workstation
> would not even see any ICMP packets at all, right?
of course.
> QUESTION: Where is the most effective place to stop spoofed
> packets or block a port?
> A) -t nat PREROUTING ???
the nat table is for _NAT_, not for filtering.
> B) -t filter INPUT (for local) and -t filter FORWARD (for LAN)?
we are talking about filtering packets, so we obviously use the 'filter'
table.
> THANK YOU VERY MUCH! These answers will help me out a lot.
As stated before, if you are wanting to write decent documentation,
please try reading the list (esp. netfilter-devel) archives fist.
Thanks.
> Joel
--
Live long and prosper
- Harald Welte / laforge@gnumonks.org http://www.gnumonks.org/
============================================================================
"If this were a dictatorship, it'd be a heck of a lot easier, just so long
as I'm the dictator." -- George W. Bush Dec 18, 2000
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Some dumb questions...
2002-11-03 7:32 Some dumb questions Joel Linuxdude
2002-11-03 12:36 ` Martin Josefsson
2002-11-04 11:05 ` Harald Welte
@ 2002-11-04 16:00 ` Oskar Andreasson
2 siblings, 0 replies; 5+ messages in thread
From: Oskar Andreasson @ 2002-11-04 16:00 UTC (permalink / raw)
To: Joel Linuxdude; +Cc: netfilter-devel
Joel,
See http://www.netfilter.org and http://iptables-tutorial.frozentux.net,
both sites should answer all your questions. Sidenote, take martins
advice, these questions are not development related.
On Sun, 3 Nov 2002, Joel Linuxdude wrote:
> I was referred to this list by one of the Netfilter guys on order to gleen
> some information needed to write a decent
> tutorial/reference guide.
>
> WARNING: POSSIBLE DUMB QUESTIONS. (But, ask me if I care!)
>
> QUESTION: Would a packet created on the Netfilter PC first
> go through the OUTPUT chain and then through POSTROUTING?
> If so, what TABLE??? NAT? What about FILTER? I assume:
> NetFilter system -> (nat)OUTPUT -> (nat)POSTROUTING -> Eth0 -> Internet
>
> QUESTION: Absolutely everything coming INTO an interface
> first goes to (nat)PREROUTING, right?
>
> QUESTION: Netfilter PC has 3 workstations over Eth1 and they
> are SNATing through Eth0 and out to the internet. What if
> somebody conversing with the workstation over...say...
> IRC gets the IP of the workstation (It would be the Netfilter
> PC's IP) and pings it.....Of course, it would be pinging
> the Netfilter PC and NOT the workstation, right? The workstation
> would not even see any ICMP packets at all, right?
>
> QUESTION: Where is the most effective place to stop spoofed
> packets or block a port?
> A) -t nat PREROUTING ???
> B) -t filter INPUT (for local) and -t filter FORWARD (for LAN)?
> C) Either A or B would work fine.
> D) None. You're way off.
>
>
> THANK YOU VERY MUCH! These answers will help me out a lot.
>
> Joel
>
>
>
>
>
>
> _________________________________________________________________
> Choose an Internet access plan right for you -- try MSN!
> http://resourcecenter.msn.com/access/plans/default.asp
>
>
>
--
----
Oskar Andreasson
http://www.frozentux.net
http://iptables-tutorial.frozentux.net
http://ipsysctl-tutorial.frozentux.net
mailto:blueflux@koffein.net
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-11-04 16:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-03 7:32 Some dumb questions Joel Linuxdude
2002-11-03 12:36 ` Martin Josefsson
2002-11-04 11:05 ` Harald Welte
2002-11-04 16:00 ` Oskar Andreasson
-- strict thread matches above, loose matches on Subject: below --
1999-07-20 10:30 some " Lennert Buytenhek
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.