Networking Forums

Networking Forums > Computer Networking > Linux Networking > ipsec and NAT

Reply
Thread Tools Display Modes

ipsec and NAT

 
 
nkrall
Guest
Posts: n/a

 
      02-19-2004, 03:59 PM
I have the following configuration:

clients 192.168.0.10:192.168.0.20 --- IPsec --> [ 192.168.0.1 gateway
-> NAT ] -----> internet

I can ping from the clients to the gateway,
from the gateway to the internet but
I CANNOT ping from the clients to the internet

ip_forward is enabled and iptable's policies are all set to ACCEPT to
make sure nothing is blocked

Thanks for your hints in advance.

Nikolaus


Here is my configuration:

Client:
conn wireless
left=%any
right=192.168.0.1
rightsubnet=192.168.0.0/255.255.255.0
rightca="C=AT,S=Vienna,CN=Name CA,Email=(E-Mail Removed)"
network=auto
auto=start
disablearrivalcheck=no
pfs=yes

Server:

config setup
interfaces="ipsec0=eth1"
klipsdebug=none
plutodebug=none
plutoload=%search
plutostart=%search
uniqueids=yes

conn %default
keyingtries=1
compress=yes
disablearrivalcheck=no
authby=rsasig
leftrsasigkey=%cert
rightrsasigkey=%cert

conn wireless
right=%any
left=192.168.0.1
leftsubnet=192.168.0.0/255.255.255.0
leftcert=gateway.pem
auto=add
pfs=yes

Routing table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.0.10 192.168.0.10 255.255.255.255 UGH 0 0 0
ipsec0
192.168.0.0 * 255.255.255.0 U 0 0 0
eth1
192.168.0.0 * 255.255.255.0 U 0 0 0
ipsec0
123.145.165.0 * 255.255.255.0 U 0 0 0
eth0
default gateway_name 0.0.0.0 UG 0 0 0
eth0

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ipsec tunnel mode vs ip in ip with ipsec transport Reji Linux Networking 1 09-20-2011 04:29 PM
IPv6 + IPsec + ipsec-tools 0.6.[4567] + scope:link = no SA established phil-news-nospam@ipal.net Linux Networking 0 07-25-2007 09:01 PM
ipsec gre mtu jasonsig Linux Networking 0 06-05-2006 10:10 PM
IPSec transport mode or IPSec tunnel mode? Spin Windows Networking 1 07-01-2004 06:32 AM
IPsec in 2.6 Bill Davidsen Linux Networking 0 11-02-2003 04:12 AM



1 2 3 4 5 6 7 8 9 10 11