Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-20-2008, 04:15 PM   #1
LQ Newbie
Registered: Dec 2006
Location: Plymouth Michigan
Distribution: Debian
Posts: 7

Rep: Reputation: 0
IPTable Trouble

I am so noob with IPTABLES, i am confused.
I have tried several guides on how to use it and i have no luck yet

Essentially i am trying to forward something over 2 interfaces

I have eth0 (my internet connection) and vpn0 (my vpn connection)

i need to forward port 15001 from my ext IP to my VPN ip (lets call them for ext and yyy.yyy.yyy.yyy for VPN)

could someone help me out here
thanks in advance
Old 01-20-2008, 05:41 PM   #2
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Rep: Reputation: 32
You can find many examples by just searching in the forum and of course Google.

Actually, you'll need something like that:

iptables -t nat -I PREROUTING -p tcp -i eth0 --dport 15001 -j DNAT --to yyy.yyy.yyy.yyy:15001


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptable setup for a static ip and ftp trouble. wr3kt Linux - Networking 4 05-07-2004 01:57 AM
iptable cristi1979 Linux - Networking 4 06-29-2003 05:54 PM
iptable help Neomaster Linux - Security 5 05-29-2003 09:13 PM
Iptable Help cirkut5732 Slackware 4 04-10-2003 11:18 PM
iptable help Syntax Linux - General 1 12-29-2002 11:04 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration