Solved

VPN client getting through Mandrake SNF

Posted on 2002-06-11
5
328 Views
Last Modified: 2013-12-06
Hi,

I’m running a Linux Mandrake Firewall (SNF).
Could someone help me out getting a VPN client through that firewall?
The installation is standard, only thing I configured on the firewall is the Web proxy, the log generators and giving machines access.

I know the Firewall uses NAT. And that’s why the VPN clients don’t get through.
But I know that you could do it by updating the IPchains to version the latest version.
All other internet protocols are no problem, they are using the proxy.

Let me know if you need more info.

You help is much appreciated
cheerio
0
Comment
Question by:TokeMUp
5 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7075101
Could you please provide more detailed information about your VPN client:
  - is it on firewall host itself
  - if not, is it a NATted IP
  - which VPN client is it
  - does it use IPsec
  - which other ports (than 50) are necessary
0
 

Author Comment

by:TokeMUp
ID: 7078041
ahoffmann,

- VPN is used on a client PC (Windows 2000)
- It's using NAT, as far as I know.
- VPN client is Contivity from Nortel.
- It's using IPsec
- Ports: 500 550 I think

Also I've read that I need to upgrade IPchains to version 1.3.10.

Also thats not working out. They made it very user frindly NO RPM. Jest a bunch of files.

Thanks for your help
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 500 total points
ID: 7078535
try if you can switch to iptables (instead of ipchains).

Anyway the rules should look like:

ipchains -A forward -p 50  -d client-ip -j ACCEPT
ipchains -A forward -p 51  -d client-ip -j ACCEPT
ipchains -A forward -p udp -d client-ip --dport 500 -j ACCEPT

rest should be done by your NAT rule.
If something fails, use tcpdump to see which packets want to cross your firewall.
0
 
LVL 1

Expert Comment

by:m4rc
ID: 7150450
what version of SNF are you using?  I am using 7.2, and i can make outgoing VPN connections using checkpoint's SecureClient vpn.

SNF uses bastille linux to create its firewall scripts.  much of this can be tweaked in /etc/bastille-firewall.conf .  the config file is well documented with comments.  you'll prolly need to play w/ the lines like
UDP_PUBLIC_SERVICES=

to allow connections out/in.  i think the best way to troubleshoot it is to make sure you are logging all dropped packets, and just tail -f /var/log/messages, and try the vpn.  see which packets are blocked, then allow them and repeat until it all works.

also, i have a network SNF didnt expect, ie, i have my own internal dns server, so i couldnt tweak the bastille rules to do everything i wanted.  i ended up using ipchains-save to save my current rules to a file, edit them by hand, and use these lines in my rc.local to start the fw

echo "rc.local: activating custom firewall rules in /root/current_ipchains_rules"
if [ -f /root/current_ipchains_rules ];then
        /sbin/ipchains-restore < /root/current_ipchains_rules
        echo "rc.local: ipchains restore done."
fi

0
 

Expert Comment

by:CleanupPing
ID: 9089010
TokeMUp:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
capture pcap with filtered traffic 1 96
centos linux 65 186
Install XRDP on Ubuntu Server 16.10 x64 3 58
Cannot seems to get SSHD running CentOS 6.5 3 12
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question