LinuxQuestions.org
Review your favorite Linux distribution.
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 02-22-2012, 09:14 AM   #1
ciso
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
Unhappy Iptables forwarding port question !


Hello !

I want to do this with iptables,

I'm logged on the portal captive server,and the portal captive have a firewall included,and I use iptables

I want my captive portal server to join my open ldap server on the port 2389,actually he is joining my open ldap on the port 389,so the connexion failed because my LDAP is configured on the port 2389!

What iptables should I use ? PREROUTING ? POSTROUTING ?

Thanks a lot and sorry for my bad english I'm french
 
Old 02-22-2012, 09:19 AM   #2
ciso
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
$IPTABLES -A PREROUTING -t nat -i $EXTIF -p tcp -d 10.252.3.2 --dport 389 -j REDIRECT --to-port 2389
$IPTABLES -A PREROUTING -t nat -i $EXTIF -p udp -d 10.252.3.2 --dport 389 -j REDIRECT --to-port 2389

But it's not working ! Mistakes or not ?
 
  


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
iptables: Port forwarding question illscience Linux - Security 5 01-15-2009 02:38 AM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Question about iptables port forwarding <Ol>Origy Linux - Networking 3 05-21-2005 04:29 PM
iptables port forwarding question burnt_toast Linux - Networking 9 03-15-2005 08:26 AM
Iptables port forwarding question Renfro Linux - Security 1 10-11-2003 07:42 AM

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

All times are GMT -5. The time now is 11:19 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