Re: NAT and openvpn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



% iptables -t nat -A PREROUTING -s $VPNIP -j SNAT --to-source $PUBIP
% iptables -t nat -A POSTROUTING -s $PUBIP -j DNAT --to-destination $VPNIP


hanks for the reply ... when I try that I get:

	mothership:~# iptables -t nat -A PREROUTING -s 10.8.0.2 -j SNAT --to-source <ip omitted>
	iptables: Invalid argument



jason.faulkner@xxxxxxxxxxxxx wrote:
iptables: Invalid argument

Perhaps this? http://www.netfilter.org/documentation/FAQ/netfilter-faq-3.html#ss3.20

--
Jason Faulkner Linux Systems Engineer
Mailtrust, a division of Rackspace


--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

good morning guys:
  DNAT
This target is only valid in the nat table, in the PREROUTING and OUTPUT chains

  SNAT
This target is only valid in the nat table, in the POSTROUTING chain.

not the kernel suddenly breaking.
RTFM! :)

everybody sleeping? ;-)

greets

Mart
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux