Results 1 to 9 of 9
Thread: IPTables Rules for Tunneling
-
11-22-2013, 12:21 PM #1Web Hosting Guru
- Join Date
- Mar 2005
- Posts
- 304
IPTables Rules for Tunneling
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.
-
11-23-2013, 02:33 AM #2Junior Guru Wannabe
- Join Date
- Aug 2012
- Posts
- 55
Hi,
You have to change the following line:
-A PREROUTING -p tcp xxx.xxx.xxx.xxx -j DNAT --to-destination 10.1.0.2█ VPSSHELL.CO.UK | UK VPS Hosting Solutions | Reliable and Fast Internet Services
-
11-23-2013, 03:33 AM #3Poooooonnyyy :*
- Join Date
- Jan 2003
- Location
- Canada
- Posts
- 5,073
Jodran,
209.141.29 is not a buyvm IP address
FranciscoBuyVM - OpenVZ & KVM Based VPS Servers - Chat with us
- All popular VPN methods supported
- Affordable offloaded MySQL & DDoS protection
- 5GB backup space, unmetered private LAN bandwidth & native IPv6 included. All with a strong serving of pony
-
11-24-2013, 05:26 AM #4Web Hosting Guru
- Join Date
- Mar 2005
- Posts
- 304
I blanked it out for added security.
And hi Francisco! ^_^ (i dont mess up your name anymore because i think of the router company)
-
11-24-2013, 05:32 AM #5Rebooting is a hack, not a fix
- Join Date
- May 2008
- Location
- Citrus Heights, CA
- Posts
- 1,887
iWebFusion.Net - Shared / Reseller / VPS / Bare Metal / Colocation / IP Transit / Networking
*Simply Hosting - Wholly owned networks, in-house staff, legions of fans!
-
11-24-2013, 05:34 AM #6Web Hosting Guru
- Join Date
- Mar 2005
- Posts
- 304
-
11-24-2013, 05:39 AM #7Web Hosting Guru
- Join Date
- Mar 2005
- Posts
- 304
Doh >.< Oops.
Fresh set of eyes can make all the difference in the world.
-
11-24-2013, 03:00 PM #8Web Hosting Guru
- Join Date
- Mar 2005
- Posts
- 304
NM, i fixed it. There were a bunch of syntax errors in other places too.
Thanks for the help though.
-
11-29-2013, 05:09 PM #9Web Hosting Guru
- Join Date
- Mar 2005
- Posts
- 304
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.
Similar Threads
-
I need a better rules iptables
By drphp3 in forum Hosting Security and TechnologyReplies: 6Last Post: 12-04-2011, 05:22 PM -
iptables rules
By Formas in forum Hosting Security and TechnologyReplies: 5Last Post: 03-05-2011, 04:29 AM -
IPTables Rules
By Mr Hash in forum Hosting Security and TechnologyReplies: 10Last Post: 11-16-2010, 09:57 AM -
Iptables Rules
By Ashley Merrick in forum Hosting Security and TechnologyReplies: 7Last Post: 07-03-2009, 07:37 AM -
Need to translate IPFW rules to IPTABLES rules
By chris_jon in forum Hosting Security and TechnologyReplies: 1Last Post: 01-20-2006, 05:11 AM