Portal Home > Knowledgebase > Articles Database > IPTables Rules for Tunneling


IPTables Rules for Tunneling




Posted by Think Tank Networks, 11-22-2013, 12:21 PM
I have some rules setup for tunneling that aren't working. When the rules are executed manually in the bash, they work fine and dont generate any errors. But when the rules are added to a script (in the case below, its iptables-persistent) they generate an error. Any idea what's happening? It's been driving me crazy for weeks and i can't find a solution anywhere. https://dl.dropboxusercontent.com/u/...bles-rules.jpg The error that is generated is: Line 6 seems to have a -t table option.

Posted by vpsshell_co_uk, 11-23-2013, 02:33 AM
Hi, You have to change the following line: Regards

Posted by DeltaAnime, 11-23-2013, 03:33 AM
Jodran, 209.141.29 is not a buyvm IP address Francisco

Posted by Think Tank Networks, 11-24-2013, 05:26 AM
I blanked it out for added security. And hi Francisco! ^_^ (i dont mess up your name anymore because i think of the router company)

Posted by Mark Muyskens, 11-24-2013, 05:32 AM
He's trying to point out that you made a typo and put "29" on your POSTROUTING instead of "39"

Posted by Think Tank Networks, 11-24-2013, 05:34 AM
Thanks for the help. It fixed that error but produces a new one: Bad argument at '209.141.39.x' Error occurred at line: 6 P.S. I x'd out the last for added privacy.

Posted by Think Tank Networks, 11-24-2013, 05:39 AM
Doh >.< Oops. Fresh set of eyes can make all the difference in the world.

Posted by Think Tank Networks, 11-24-2013, 03:00 PM
NM, i fixed it. There were a bunch of syntax errors in other places too. Thanks for the help though.

Posted by Think Tank Networks, 11-29-2013, 05:09 PM
Ugh something broke again but now the server cant even send any outgoing data (websites fail to query). Here are my new iptables rules: https://dl.dropboxusercontent.com/u/...les-rules3.png Any idea what's happening? Ive spent over a dozen hours on it and its still not working.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
oc12host.com ? (Views: 461)
Sharktech Cloud (Views: 510)
[My] WHMCS Compromised (Views: 491)
noob questions (Views: 449)