It took me a good deal of time to make a way out, but all is well that ends
well. Would like to share answer to the below mentioned query as it may be
of use for the others;

Scenario: Where we want to create a site-to-site VPN and run kannel on the
same machine as VPN implementation and connect with remote end SMPP host

1. make sure that VPN tunnel is already build with our left (X.X.X.X) and
leftsubnet(Y.Y.Y.Y) ips mentioned in our ipsec configurations file
2. Now remote end expects our encryption domain to be Y.Y.Y.Y where as
kannel always uses the first interface in kernel to be its own host ignoring
the others. In order to achieve this;
*a) first decalre a virtual interface on the same machine with following
command;*

# ifconfig eth0:1 Y.Y.Y.Y netmask 255.255.255.255

...do yourself on how to make this change persistant.

*b)with our smpp SMSC configuration in kannel.conf, add following line
(our-host=Y.Y.Y.Y)*

group = smsc
smsc = smpp
smsc-id = remote
host = *re.mo.te.IP*
port = *p.o.r.t*
receive-port = *p.o.r.t*
our-host = Y.Y.Y.Y
smsc-username = "user"
smsc-password = password
system-type = "VMA"
address-range = ""


...and thats it. Now when you run bearerbox; you should see smpp pdu's
travelling in log files.

regards,
Hammad Aslam Khan

On Wed, Mar 26, 2008 at 3:37 PM, Hammad <[EMAIL PROTECTED]> wrote:

> Hello everyone,
> Can somebody please share, how to configure Openswan and kannel on the
> same machine witha virtual eth interface;
>
> how do we modify iptables in this case?
>
> Regards,
> Hammad
>

Reply via email to