PPTP NAT module
I know there have been a pile of questions about this module in the past, but I can't seem to find any responses about the behaviour I am seeing.
I am currently running a 2.4.23 kernel with the lastest officially released POM patches applied to it. The network being protected by the firewall is providing NAT for the hosts behind it. If the ip_nat_pptp module is loaded, none of the protected clients can establish an outbound PPTP session. If the conntrack modules are removed, a single session can be established (as would be expected).
The remote PPTP server log shows the initial TCP connection, but never sees any GRE traffic from the connecting host.
I have seen posts about the local NAT kernel option, I have tried it both ways with the same results. If there are any kernel settings in particular that I may be missing, please let me know.
My iptables firewall rules include a default policy of DROP for INPUT and FORWARD, ACCEPT for OUTPUT. The first line in the rules includes an ACCEPT for the INPUT chain for established and related connection. There is also a rule allowing any traffic for all protocols to any host which originates from the protected network on the internal interface.
Signature · 3 lines
Joshua Jackson Vortech Consulting http://www.vortech.net
Hello Joshua,
I successfully installed on a 2.4.23 kernel with ip_nat_pptp module I tested 3 vpn NATed connections to the SAME! server in the outside world see below my kernel's .config
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_MMAP=y
# CONFIG_NETLINK_DEV is not setCONFIG_NETFILTER=yCONFIG_NETFILTER_DEBUG=yCONFIG_FILTER=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_FWMARK=yCONFIG_IP_ROUTE_NAT=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_TOS=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_PNP=y
# CONFIG_IP_PNP_DHCP is not set
# CONFIG_IP_PNP_BOOTP is not setCONFIG_NET_IPIP=yCONFIG_NET_IPGRE=yCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_ARPD=yCONFIG_INET_ECN=y
# CONFIG_SYN_COOKIES is not set
#
# IP: Netfilter Configuration
#CONFIG_IP_NF_CONNTRACK=yCONFIG_IP_NF_FTP=y
# CONFIG_IP_NF_AMANDA is not setCONFIG_IP_NF_TFTP=yCONFIG_IP_NF_IRC=yCONFIG_IP_NF_CT_PROTO_GRE=yCONFIG_IP_NF_PPTP=yCONFIG_IP_NF_QUEUE=yCONFIG_IP_NF_IPTABLES=yCONFIG_IP_NF_MATCH_LIMIT=yCONFIG_IP_NF_MATCH_MAC=y
# CONFIG_IP_NF_MATCH_PKTTYPE is not setCONFIG_IP_NF_MATCH_MARK=yCONFIG_IP_NF_MATCH_MULTIPORT=yCONFIG_IP_NF_MATCH_TOS=y
# CONFIG_IP_NF_MATCH_RECENT is not set
# CONFIG_IP_NF_MATCH_ECN is not set
# CONFIG_IP_NF_MATCH_DSCP is not setCONFIG_IP_NF_MATCH_AH_ESP=yCONFIG_IP_NF_MATCH_LENGTH=yCONFIG_IP_NF_MATCH_TTL=yCONFIG_IP_NF_MATCH_TCPMSS=yCONFIG_IP_NF_MATCH_HELPER=yCONFIG_IP_NF_MATCH_STATE=yCONFIG_IP_NF_MATCH_CONNTRACK=yCONFIG_IP_NF_MATCH_UNCLEAN=yCONFIG_IP_NF_MATCH_OWNER=yCONFIG_IP_NF_FILTER=yCONFIG_IP_NF_TARGET_REJECT=yCONFIG_IP_NF_TARGET_MIRROR=yCONFIG_IP_NF_NAT=yCONFIG_IP_NF_NAT_NEEDED=yCONFIG_IP_NF_TARGET_MASQUERADE=yCONFIG_IP_NF_TARGET_REDIRECT=yCONFIG_IP_NF_NAT_PPTP=yCONFIG_IP_NF_NAT_PROTO_GRE=y
# CONFIG_IP_NF_NAT_LOCAL is not setCONFIG_IP_NF_NAT_SNMP_BASIC=yCONFIG_IP_NF_NAT_IRC=yCONFIG_IP_NF_NAT_FTP=yCONFIG_IP_NF_NAT_TFTP=yCONFIG_IP_NF_MANGLE=yCONFIG_IP_NF_TARGET_TOS=y
# CONFIG_IP_NF_TARGET_ECN is not set
# CONFIG_IP_NF_TARGET_DSCP is not setCONFIG_IP_NF_TARGET_MARK=yCONFIG_IP_NF_TARGET_LOG=yCONFIG_IP_NF_TARGET_ULOG=yCONFIG_IP_NF_TARGET_TCPMSS=yCONFIG_IP_NF_ARPTABLES=yCONFIG_IP_NF_ARPFILTER=yCONFIG_IP_NF_ARP_MANGLE=y
Wednesday, December 10, 2003, 2:03:55 AM, you wrote:
JJ> I know there have been a pile of questions about this module in the past, but JJ> I can't seem to find any responses about the behaviour I am seeing.
JJ> I am currently running a 2.4.23 kernel with the lastest officially released JJ> POM patches applied to it. The network being protected by the firewall is JJ> providing NAT for the hosts behind it. If the ip_nat_pptp module is loaded, JJ> none of the protected clients can establish an outbound PPTP session. If the JJ> conntrack modules are removed, a single session can be established (as would JJ> be expected).
JJ> The remote PPTP server log shows the initial TCP connection, but never sees JJ> any GRE traffic from the connecting host.
JJ> I have seen posts about the local NAT kernel option, I have tried it both ways JJ> with the same results. If there are any kernel settings in particular that I JJ> may be missing, please let me know.
JJ> My iptables firewall rules include a default policy of DROP for INPUT and JJ> FORWARD, ACCEPT for OUTPUT. The first line in the rules includes an ACCEPT JJ> for the INPUT chain for established and related connection. There is also a JJ> rule allowing any traffic for all protocols to any host which originates from JJ> the protected network on the internal interface.
Signature · 2 lines
Best regards, Oleg mailto:[email protected]
Thanks. I will build a kernel from your config and give it a go.
Josh
Quoted 121 lines · Oleg Savostyanov
Hello Joshua,
I successfully installed on a 2.4.23 kernel withip_nat_pptpmodule I tested 3 vpn NATed connections to the SAME! server in the outside world see below my kernel's .config#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_MMAP=y
#CONFIG_NETLINK_DEVis not setCONFIG_NETFILTER=yCONFIG_NETFILTER_DEBUG=yCONFIG_FILTER=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_FWMARK=yCONFIG_IP_ROUTE_NAT=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_TOS=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_PNP=y
#CONFIG_IP_PNP_DHCPis not set
#CONFIG_IP_PNP_BOOTPis not setCONFIG_NET_IPIP=yCONFIG_NET_IPGRE=yCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_ARPD=yCONFIG_INET_ECN=y
#CONFIG_SYN_COOKIESis not set#
# IP: Netfilter Configuration
#CONFIG_IP_NF_CONNTRACK=yCONFIG_IP_NF_FTP=y
#CONFIG_IP_NF_AMANDAis not setCONFIG_IP_NF_TFTP=yCONFIG_IP_NF_IRC=yCONFIG_IP_NF_CT_PROTO_GRE=yCONFIG_IP_NF_PPTP=yCONFIG_IP_NF_QUEUE=yCONFIG_IP_NF_IPTABLES=yCONFIG_IP_NF_MATCH_LIMIT=yCONFIG_IP_NF_MATCH_MAC=y
#CONFIG_IP_NF_MATCH_PKTTYPEis not setCONFIG_IP_NF_MATCH_MARK=yCONFIG_IP_NF_MATCH_MULTIPORT=yCONFIG_IP_NF_MATCH_TOS=y
#CONFIG_IP_NF_MATCH_RECENTis not set
#CONFIG_IP_NF_MATCH_ECNis not set
#CONFIG_IP_NF_MATCH_DSCPis not setCONFIG_IP_NF_MATCH_AH_ESP=yCONFIG_IP_NF_MATCH_LENGTH=yCONFIG_IP_NF_MATCH_TTL=yCONFIG_IP_NF_MATCH_TCPMSS=yCONFIG_IP_NF_MATCH_HELPER=yCONFIG_IP_NF_MATCH_STATE=yCONFIG_IP_NF_MATCH_CONNTRACK=yCONFIG_IP_NF_MATCH_UNCLEAN=yCONFIG_IP_NF_MATCH_OWNER=yCONFIG_IP_NF_FILTER=yCONFIG_IP_NF_TARGET_REJECT=yCONFIG_IP_NF_TARGET_MIRROR=yCONFIG_IP_NF_NAT=yCONFIG_IP_NF_NAT_NEEDED=yCONFIG_IP_NF_TARGET_MASQUERADE=yCONFIG_IP_NF_TARGET_REDIRECT=yCONFIG_IP_NF_NAT_PPTP=yCONFIG_IP_NF_NAT_PROTO_GRE=y
#CONFIG_IP_NF_NAT_LOCALis not setCONFIG_IP_NF_NAT_SNMP_BASIC=yCONFIG_IP_NF_NAT_IRC=yCONFIG_IP_NF_NAT_FTP=yCONFIG_IP_NF_NAT_TFTP=yCONFIG_IP_NF_MANGLE=yCONFIG_IP_NF_TARGET_TOS=y
#CONFIG_IP_NF_TARGET_ECNis not set
#CONFIG_IP_NF_TARGET_DSCPis not setCONFIG_IP_NF_TARGET_MARK=yCONFIG_IP_NF_TARGET_LOG=yCONFIG_IP_NF_TARGET_ULOG=yCONFIG_IP_NF_TARGET_TCPMSS=yCONFIG_IP_NF_ARPTABLES=yCONFIG_IP_NF_ARPFILTER=yCONFIG_IP_NF_ARP_MANGLE=yWednesday, December 10, 2003, 2:03:55 AM, you wrote:
JJ> I know there have been a pile of questions about this module in the past, but JJ> I can't seem to find any responses about the behaviour I am seeing.
JJ> I am currently running a 2.4.23 kernel with the lastest officially released JJ> POM patches applied to it. The network being protected by the firewall is JJ> providing NAT for the hosts behind it. If the
ip_nat_pptpmodule is loaded, JJ> none of the protected clients can establish an outbound PPTP session. If the JJ> conntrack modules are removed, a single session can be established (as would JJ> be expected).JJ> The remote PPTP server log shows the initial TCP connection, but never sees JJ> any GRE traffic from the connecting host.
JJ> I have seen posts about the local NAT kernel option, I have tried it both ways JJ> with the same results. If there are any kernel settings in particular that I JJ> may be missing, please let me know.
JJ> My iptables firewall rules include a default policy of DROP for INPUT and JJ> FORWARD, ACCEPT for OUTPUT. The first line in the rules includes an ACCEPT JJ> for the INPUT chain for established and related connection. There is also a JJ> rule allowing any traffic for all protocols to any host which originates from JJ> the protected network on the internal interface.
Quoted 5 lines · Oleg Savostyanov
Hello Joshua,
I successfully installed on a 2.4.23 kernel withip_nat_pptpmodule I tested 3 vpn NATed connections to the SAME! server in the outside world see below my kernel's .config
<snip>
It would appear that the PPTP NAT connection tracking code only works if it is built directly into the kernel. With it loaded as a module, I can not get a single PPTP connection through the firewall. With it built in, the connection tracking works as it should.
I would like to have it available as a module to give people the option of loading it only if they need it... but for now, at least it is working.
--
Joshua Jackson
Vortech Consulting
http://www.vortech.net