I'm trying to use my VPS server (single interface of course) as somewhat of a VPN gateway to my other location (which is not accessible directly from some places) where the openvpn server is running, and am kind of lost as to what to try next.

I tried a redirect rule, but apparently shorewall didn't like that (it just failed to start). I tried adding the rules via command line directly from a bit of searching I did:

sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p udp --dport 1194 -j DNAT --to-destination <siteb ip>:1194
iptables -t nat -A POSTROUTING -j MASQUERADE

When I did that dmesg gave Forward:Reject messages.

Can someone point me to the correct way to do this?

Thanks!

--
Mark D. Montgomery II
http://www.techiem2.net

Attachment: binlJuYJNMa3n.bin
Description: PGP Public Key

Attachment: pgpXVicc0vsp_.pgp
Description: PGP Digital Signature

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to