Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm having trouble setting up a VPN on my VPS that's running Ubuntu 11.04. I'm been following this guide http://tipupdate.com/how-to-install-openvpn-on-ubuntu-vps/

I'm able to start the VPN, but the command it tell's me to do after I start the VPN doesn't work for me. I've tried it about 5 different way's and i'll show you what i get now.

:~# iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables: No chain/target/match by that name.

:~# iptables -A FORWARD state --state RELATED,ESTABLISHED -j ACCEPT
Bad argument `state'
Try `iptables -h' or 'iptables --help' for more information.

I just can't get that to work and the VPN doesn't seem to be workign with out it.

Can someone help me fix this?

share|improve this question

1 Answer 1

Your FORWARD chain is missing, you can create it with:

sudo iptables -N FORWARD

Consider using iptables-save and iptables-restore (or iptables-apply for remote machines) for saving/applying rules.

If you still have issues, contact your VPS provider for more help.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.