Results 1 to 9 of 9
  1. #1

    * 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.

  2. #2
    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
    Regards
    VPSSHELL.CO.UK | UK VPS Hosting Solutions | Reliable and Fast Internet Services

  3. #3
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    5,073
    Jodran,

    209.141.29 is not a buyvm IP address

    Francisco
    BuyVM - 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

  4. #4
    I blanked it out for added security.

    And hi Francisco! ^_^ (i dont mess up your name anymore because i think of the router company)

  5. #5
    Join Date
    May 2008
    Location
    Citrus Heights, CA
    Posts
    1,887
    Quote Originally Posted by |Jordan| View Post
    I blanked it out for added security.

    And hi Francisco! ^_^ (i dont mess up your name anymore because i think of the router company)
    He's trying to point out that you made a typo and put "29" on your POSTROUTING instead of "39"
    iWebFusion.Net - Shared / Reseller / VPS / Bare Metal / Colocation / IP Transit / Networking
    *Simply Hosting - Wholly owned networks, in-house staff, legions of fans!

  6. #6
    Quote Originally Posted by vpsshell_co_uk View Post
    Hi,

    You have to change the following line:



    Regards
    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.

  7. #7
    Doh >.< Oops.

    Fresh set of eyes can make all the difference in the world.

  8. #8
    NM, i fixed it. There were a bunch of syntax errors in other places too.

    Thanks for the help though.

  9. #9
    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

  1. I need a better rules iptables
    By drphp3 in forum Hosting Security and Technology
    Replies: 6
    Last Post: 12-04-2011, 05:22 PM
  2. iptables rules
    By Formas in forum Hosting Security and Technology
    Replies: 5
    Last Post: 03-05-2011, 04:29 AM
  3. IPTables Rules
    By Mr Hash in forum Hosting Security and Technology
    Replies: 10
    Last Post: 11-16-2010, 09:57 AM
  4. Iptables Rules
    By Ashley Merrick in forum Hosting Security and Technology
    Replies: 7
    Last Post: 07-03-2009, 07:37 AM
  5. Need to translate IPFW rules to IPTABLES rules
    By chris_jon in forum Hosting Security and Technology
    Replies: 1
    Last Post: 01-20-2006, 05:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •