LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-30-2014, 04:22 PM   #1
sandilovely24
LQ Newbie
 
Registered: Jan 2014
Posts: 12

Rep: Reputation: Disabled
[solved]Redirect TCP port 25 to port 2525


...................

Last edited by sandilovely24; 02-03-2014 at 08:27 AM.
 
Old 01-31-2014, 03:04 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Rather than removing your question and changing it to just resolved you should post your question AND your solution. That way someone having same issue in the future can find the solution.
 
Old 02-03-2014, 08:20 AM   #3
sandilovely24
LQ Newbie
 
Registered: Jan 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
I redirect TCP port 25 to port 2525

Code:
$ sudo iptables -t nat -A PREROUTING -i enp2s0 -p tcp --dport 25 -j REDIRECT --to-port 2525
to view nat rules

Code:
$ sudo iptables -t nat -L -n -v
Save rules

Code:
$ sudo iptables-save

Last edited by sandilovely24; 02-03-2014 at 08:26 AM. Reason: Sorry for a lot of time i needed to post here but was unable...
 
1 members found this post helpful.
  


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
port scanning possible to port 80 robeich Linux - Newbie 2 05-18-2011 05:46 AM
LXer: Learn how to use nmap, and nmap GUI, a great port scan tool LXer Syndicated Linux News 0 01-03-2008 09:10 AM
OS detection and port scanning without nmap. User Name. Linux - Security 5 09-07-2006 08:42 AM
Port scanning? muppski Linux - Security 6 07-01-2005 05:44 PM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:15 AM.

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