Sponsored Content
Full Discussion: VPN Server & Client
Special Forums IP Networking VPN Server & Client Post 302901068 by Blues23 on Sunday 11th of May 2014 06:25:28 PM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
NBD-CLIENT(8)															     NBD-CLIENT(8)

NAME
nbd-client - connect to a server running nbd-server(1), to use its exported block device SYNOPSIS
nbd-client [ bs=blocksize ] [ timeout=seconds ] host port nbd-device [ -sdp ] [ -swap ] [ -persist ] [ -nofork ] nbd-client -d nbd-device nbd-client -c nbd-device DESCRIPTION
With nbd-client, you can connect to a server running nbd-server, thus using raw diskspace from that server as a blockdevice on the local client. To do this, support from the Linux Kernel is necessary, in the form of the Network Block Device (NBD). When you have that, either in the kernel, or as a module, you can connect to an NBD server and use its exported file through a block special file with major mode 43. OPTIONS
The following options are supported: bs=blocksize Use a blocksize of "blocksize". Default is 1024; allowed values are either 512, 1024, 2048 or 4096 host The hostname of the machine running nbd-server. timeout=seconds Set the connection timeout to "seconds". For this to work, you need a kernel with support for the NBD_SET_TIMEOUT ioctl; this was introduced into Linus' tree on 2007-10-11, and will be part of kernel 2.6.24. port The TCP port on which nbd-server is running at the server. nbd-device The block special file this nbd-client should connect to. -c Check whether the specified nbd device is connected. If the device is connected, nbd-client will exit with an exit state of 0 and print the PID of the nbd-client instance that connected it to stdout. If the device is not connected or does not exist (for example because the nbd module was not loaded), nbd-client will exit with an exit state of 1 and not print anything on stdout. If an error occurred, nbd-client will exit with an exit state of 2, and not print anything on stdout either. -d Disconnect the specified nbd device from the server -persist When this option is specified, nbd-client will immediately try to reconnect an nbd device if the connection ever drops unexpectedly due to a lost server or something similar. -sdp Connect to the server using the Socket Direct Protocol (SDP), rather than IP. See nbd-server(1) for details. -swap Specifies that this NBD device will be used as swapspace. This option attempts to prevent deadlocks by performing mlockall() at an appropriate time. It does not however guarantee that such deadlocks can be avoided. -nofork Specifies that the NBD client should not detach and daemonize itself. This is mostly useful for debugging. EXAMPLES
Some examples of nbd-client usage: o To connect to a server running on port 2000 at host "server.domain.com", using the client's block special file "/dev/nb0": nbd-client server.domain.com 2000 /dev/nb0 o To connect to a server running on port 2001 at host "swapserver.domain.com", using the client's block special file "/dev/nb1", for swap purposes: nbd-client swapserver.domain.com 2001 /dev/nb1 -swap o To disconnect the above connection again (after making sure the block special file is not in use anymore): nbd-client -d /dev/nb1 SEE ALSO
nbd-server (1). AUTHOR
The NBD kernel module and the NBD tools have been written by Pavel Macheck (pavel@ucw.cz). The kernel module is now maintained by Paul Clements (Paul.Clements@steeleye.com), while the userland tools are maintained by Wouter Ver- helst (wouter@debian.org) This manual page was written by Wouter Verhelst (<wouter@debian.org>) for the Debian GNU/Linux system (but may be used by others). Permis- sion is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. 26 May 2009 NBD-CLIENT(8)
All times are GMT -4. The time now is 05:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy