LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-20-2008, 04:15 PM   #1
DACRepair
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 xxx.xxx.xxx.xxx 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
Panagiotis_IOA
Member
 
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:

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:28 PM.

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