[Openswan Users] Am I actually using NAT?

Paul Wouters paul at xelerance.com
Thu Sep 22 19:51:16 EDT 2011


On Thu, 22 Sep 2011, James Nelson wrote:

> In an effort to sound as dimwitted as possible, I'm still getting the
> generic error, this time trying: 
> ip route add <CLIENT INTERNAL> via <LOCAL EC2 GW> src <EC2 ELASTIC IP>
> 
> I received the LOCAL EC2 GW just by using the following command on the
> Amazon instance:
> ip route |grep "default" | awk '{ print $3 }' 

[root at thinkpad ~]# ip route |grep "default"
default via 192.168.2.1 dev wlan0  proto static 
[root at thinkpad ~]# ifconfig wlan0:1 5.6.7.8
[root at thinkpad ~]# ip route add 1.2.3.4/32 via 192.168.2.1 src 5.6.7.8 dev wlan0
[root at thinkpad ~]#

Paul


More information about the Users mailing list