* Patch-o-matic help
@ 2003-07-03 19:01 System Administrator
2003-07-03 20:43 ` DROP command Remus
2003-07-07 12:50 ` Patch-o-matic help Chris Wilson
0 siblings, 2 replies; 6+ messages in thread
From: System Administrator @ 2003-07-03 19:01 UTC (permalink / raw)
To: netfilter
anybody arround that can assist a new iptables administrator--I
Hope..............
I have iptable 1.26 setup on a Redhat 8 server. This server also needs to
function as a PPTP VPN server. It appears that PoPToP is the only reasonable
way to acomplish that. I can get PoTPoP to work but I am told that I need to
be able to pass GRE packets.
It looks like there is a patch to do this but requires patch-o-matic.
Looking at the README, it looks like I run a command called runme. and then
recompile the Kernel.
I'm yet to go through the recompile. Anybody willing to help the
inexperienced become experienced?
Thanks (in advance)
--
Leon Sonntag
^ permalink raw reply [flat|nested] 6+ messages in thread
* DROP command
2003-07-03 19:01 Patch-o-matic help System Administrator
@ 2003-07-03 20:43 ` Remus
2003-07-07 12:50 ` Patch-o-matic help Chris Wilson
1 sibling, 0 replies; 6+ messages in thread
From: Remus @ 2003-07-03 20:43 UTC (permalink / raw)
To: netfilter
Hi folks,
I have a Linux box firewall (iptables 1.2.7a) with NAT/MASQUERADING.
How I can block all local network access to my firewall excluding some local
IP addresses?
I tried these command but it doesn't work:
/usr/local/sbin/iptables -A INPUT -i eth2 -s 10.105.105.0/24 -j DROP
/usr/local/sbin/iptables -A INPUT -i eth2 -s 10.105.105.20 -j ACCEPT
Thank you in advance
Remus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Patch-o-matic help
2003-07-03 19:01 Patch-o-matic help System Administrator
2003-07-03 20:43 ` DROP command Remus
@ 2003-07-07 12:50 ` Chris Wilson
2003-07-07 13:49 ` Rob Sterenborg
1 sibling, 1 reply; 6+ messages in thread
From: Chris Wilson @ 2003-07-07 12:50 UTC (permalink / raw)
To: System Administrator; +Cc: netfilter
Hello, Mr Administrator,
> I have iptable 1.26 setup on a Redhat 8 server. This server also needs to
> function as a PPTP VPN server. It appears that PoPToP is the only reasonable
> way to acomplish that. I can get PoTPoP to work but I am told that I need to
> be able to pass GRE packets.
> It looks like there is a patch to do this but requires patch-o-matic.
> Looking at the README, it looks like I run a command called runme. and then
> recompile the Kernel.
> I'm yet to go through the recompile. Anybody willing to help the
> inexperienced become experienced?
You don't need any patch-o-matic, the functionality is built into iptables
since long ago. You just need to allow in Protocol 47 (GRE) as well as TCP
port 1723 (PPTP control channel). So the following rules should do it:
iptables -I INPUT -i <external-interface> -p tcp --dport 1723 -j ACCEPT
iptables -I INPUT -i <external-interface> -p 47 -j ACCEPT
If you only need connections from certain IP addresses, then you can
narrow this down in order to protect your PPTP server from intruders.
By the way, if you make a custom kernel with the PPTP NAT patch, then it
may cause problems with running a PPTP server on the same machine (at
least, I saw this in one case, but I didn't build that kernel so I don't
know exactly which patch was used).
Cheers, Chris.
--
___ __ _
/ __// / ,__(_)_ | Chris Wilson -- UNIX Firewall Lead Developer |
/ (_ / ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk |
\ _//_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Patch-o-matic help
2003-07-07 12:50 ` Patch-o-matic help Chris Wilson
@ 2003-07-07 13:49 ` Rob Sterenborg
0 siblings, 0 replies; 6+ messages in thread
From: Rob Sterenborg @ 2003-07-07 13:49 UTC (permalink / raw)
To: netfilter
> By the way, if you make a custom kernel with the PPTP NAT
> patch, then it
> may cause problems with running a PPTP server on the same machine (at
> least, I saw this in one case, but I didn't build that kernel
> so I don't
> know exactly which patch was used).
I have seen this happening too with kernels I built myself.
http://www.netfilter.org/documentation/pomlist/pom-extra.html#pptp-connt
rack-nat :
----
Note that this code currently has limitations
- can only NAT connections from PNS to PAC
- doesnt' support multiple calls within one session
----
So, what I think I should read here is that it isn't needed (read : you
should not use) if you have Poptop running on the same box as iptables
as no conntrack or nat is needed. (Correct me if I'm wrong, but that is
my experience..)
OTOH, if you have pptp clients (*not* a server) behind iptables then you
should only use ip_conntrack_pptp.
When you have this setup, don't load ip_nat_pptp because you won't be
able to connect to Poptop anymore.
In my case ; when I don't load ip_conntrack_pptp then sometimes I can
connect to Poptop and sometimes not. With ip_conntrack_pptp this
behaviour is solved.
Rob
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: DROP command
@ 2003-07-03 20:55 Daniel Chemko
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Chemko @ 2003-07-03 20:55 UTC (permalink / raw)
To: Remus, netfilter
Reverse the order
-----Original Message-----
From: Remus [mailto:rmocius@auste.elnet.lt]
Sent: Thursday, July 03, 2003 1:44 PM
To: netfilter@lists.netfilter.org
Subject: DROP command
Hi folks,
I have a Linux box firewall (iptables 1.2.7a) with NAT/MASQUERADING.
How I can block all local network access to my firewall excluding some
local
IP addresses?
I tried these command but it doesn't work:
/usr/local/sbin/iptables -A INPUT -i eth2 -s 10.105.105.0/24 -j DROP
/usr/local/sbin/iptables -A INPUT -i eth2 -s 10.105.105.20 -j ACCEPT
Thank you in advance
Remus
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: DROP command
@ 2003-07-03 20:58 ISPList John
0 siblings, 0 replies; 6+ messages in thread
From: ISPList John @ 2003-07-03 20:58 UTC (permalink / raw)
To: 'netfilter@lists.netfilter.org'
Switch the order of the lines around. Your packets are getting DROPPED
before the ACCEPT can see them. <smile>
John
> Hi folks,
>
> I have a Linux box firewall (iptables 1.2.7a) with NAT/MASQUERADING.
> How I can block all local network access to my firewall excluding some
> local[John Friel III] IP addresses?
> I tried these command but it doesn't work:
>
> /usr/local/sbin/iptables -A INPUT -i eth2 -s 10.105.105.0/24 -j DROP
> /usr/local/sbin/iptables -A INPUT -i eth2 -s 10.105.105.20 -j ACCEPT
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-07-07 13:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-03 19:01 Patch-o-matic help System Administrator
2003-07-03 20:43 ` DROP command Remus
2003-07-07 12:50 ` Patch-o-matic help Chris Wilson
2003-07-07 13:49 ` Rob Sterenborg
-- strict thread matches above, loose matches on Subject: below --
2003-07-03 20:55 DROP command Daniel Chemko
2003-07-03 20:58 ISPList John
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox