VPN Server & Client


 
Thread Tools Search this Thread
Special Forums IP Networking VPN Server & Client
# 1  
Old 05-11-2014
VPN Server & Client

First of all, hello.
I have a problem installing a vpn server and client.

My server is a computer running windows 7, and windows, running a virtual machine running debian.

In the debian system, I've the vpn server installed (SoftEther VPN Server)

The problems come when I try to connect to the vpn server using L2PT/IPSec protocols (using for example, my android device). And then, when running another virtual machine that interacts as client, I get this error: <Error code 1: Connection to the server failed. Check network connection and make sure that address and port number of destination server are correct.>

What do I need to add to my iptables to solve it (allow L2PT/IPSec connections and solve the error code 1)?

This is my firewall configuration, that is currently "disabling" the firewall.

Code:
#! /bin/sh 
# 
#  
# 
# 
 
#  Flush tables
 
iptables -F 
iptables -X 
iptables -t nat -F 
iptables -t nat -X 
iptables -t mangle -F 
iptables -t mangle -X 
 
# Default policy
 
iptables -P INPUT ACCEPT 
iptables -P OUTPUT DROP
iptables -P FORWARD ACCEPT

Then, I have another problem. My router doesn't allow SecureNAT that gives you the SoftEther's VPN Server, so I have it disabled, but I need to have nat on the devices connected to the VPN Server, that have an ip assigned by the server using dhcp protocol.
This ips have the range of 192.168.30.10 until 192.168.30.50.

Do I need to add new rules to my iptables? What rules?

Thank you in advance.
Moderator's Comments:
Mod Comment Please use CODE tags (not QUOTE tags) to display sample input, output, and code segments.

Last edited by Don Cragun; 05-15-2014 at 03:18 AM.. Reason: Fix tags.
# 2  
Old 05-15-2014
Your default firewall behaviour for all outbound traffic is to DROP. Are you sure that's what you wanted?

Check you can actually connect to the right port by running telnet <port number> and seeing if you get a connection.

The VPN server needs to be able to allocate an IP address for the client, is the VPN server running a DHCP server? If not, have you allocated a pool of addresses to the VPN server?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Port Forward to VPN client.

Hi all, I can't port forward from WAN to VPN Client. VPN Client Ubuntu 18 192.168.0.16 Port 6000 VPN Gateway for LAN clients Centos 192.168.0.12 Router 192.168.0.1 I can forward to the VPN Client if VPN is not connected if I forward Port 6000 from 192.168.0.1 directly to 192.168.0.16.... (2 Replies)
Discussion started by: stinkefisch
2 Replies

2. IP Networking

Cisco VPN server and client - connection drop

I have a Cisco 1841 router configured as Easy VPN Server. Here is the configuration of the router: Cisco# Cisco#show running-config Building configuration... Current configura - Pastebin.com I have a Centos 5.7 server with installed Cisco VPN client for Linux. The client successfully... (0 Replies)
Discussion started by: rcbandit
0 Replies

3. Solaris

Is there a VPN client that can be used on solaris 10 ?

I need to install VPN client on Solaris 10 server. I searched but only Cisco client was available which requires a service agreement. Please suggest some free ware for this and the steps to do that too as i am net to Solaris Admin tasks. (1 Reply)
Discussion started by: kukretiabhi13
1 Replies

4. UNIX for Dummies Questions & Answers

Problem when I try to Install a Client VPN Cisco

Hi Gurus of UNIX, I have a problem when I try to install a software VPN Cisco in Laptop (HP530). I do the following procedures: Part 2 - VPN Client Compilation We will now set up the vpn client. As there is no official Cisco VPN Client for OpenSolaris X86 available, we will use vpnc.... (1 Reply)
Discussion started by: andresguillen
1 Replies

5. Red Hat

cisco anyconnect VPN client installation??

Anyone had installed Cisco AnyConnect VPN client on RedHat5.3 EL or CentOS 5.3? I tried on CentOS 5.3 but always getting host unreachable error. Same for windows xp works fine. The error log reports: Sep 1 19:14:03 localhost vpnagent: Function: tableCallbackHandler File: RouteMgr.cpp Line:... (3 Replies)
Discussion started by: zing_foru
3 Replies

6. UNIX for Advanced & Expert Users

mandatory & record locking using client server architecture

Hi I want a program of employee database locking with mendatory & record locking using client server architecture .there are two type of clients one which has all permissions of read/write called supervisor & another can only read the file.employee data base should contain 1) name 2)ID 3)BU... (1 Reply)
Discussion started by: rluha
1 Replies

7. Programming

Client/Server Socket Application - Preventing Client from quitting on server crash

Problem - Linux Client/Server Socket Application: Preventing Client from quitting on server crash Hi, I am writing a Linux socket Server and Client using TCP protocol on Ubuntu 9.04 x64. I am having problem trying to implement a scenario where the client should keep running even when the... (2 Replies)
Discussion started by: varun.nagpaal
2 Replies

8. IP Networking

Cisco vpn client

Who in the 64 ubuntu adopted cisco vpn client on the wireless network I downloaded the cisco vpn client for linux but run vpn_install make file when an error in cisco with the help of the document read in half a day, nor do I know this vpn client in the 64 systems in use. Who can help me, a... (1 Reply)
Discussion started by: Eason
1 Replies

9. UNIX for Advanced & Expert Users

VPN client (windows Box),and Server (Unix Box)

If I want to access unix box via VPN tunnel,from windows box. What sould I configure on the windows client PC, and what should I enable on the Unix Server box ? I am using Solaris V10 intel platform, and I am using windows XP, and 2003 for client (0 Replies)
Discussion started by: zillah
0 Replies

10. Cybersecurity

VPN client for linux?...

I'm looking for an open source VPN client that I can set up on RedHat 7.1. Any suggestion? Thanks in advance. VJ :) (3 Replies)
Discussion started by: vancouver_joe
3 Replies
Login or Register to Ask a Question