Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-07-2013, 01:35 AM
|
#1
|
Member
Registered: Jul 2007
Posts: 277
Rep:
|
Forwarding port 23 with iptables
What I'm trying to do is forward port 23 from my laptop to my t2000 server. I've looked around on how to do this but most of the info i found online is complicated and I'm barely learning all of this. So my laptop is connected via wifi to the internet (wlan0), port 23 is already forwarded to the laptop in my router settings. Now I need to forward 23 to my server. Can someone give me a simple solution?
Here's my setup:
Laptop connected to internet via wlan0 (192.168.0.101)
Laptop (eth0 set to 192.168.200.105)
T2000 (eth0 set to 192.168.200.100)
All I'm doing is taking port 23 from my laptop to my server. I'm running slackware by the way.
Last edited by austinramsay; 10-07-2013 at 01:41 AM.
|
|
|
10-07-2013, 04:26 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well there are plenty of examples knocking around: http://www.philchen.com/2011/06/21/h...sing-netfilter iptables What's not clear about this guide? No point starting from scratch when there are so many good resources already out there.
And don't think we don't know port 23 is telnet! Don't use telnet. It's evil. if this actually is telnet, I would actually suggest using ssh to reach the laptop and then running telnet from there, or using an ssh tunnel to the laptop and port forwarding port 23 from puTTY or whatever your client system is.
|
|
|
10-07-2013, 10:11 AM
|
#3
|
Member
Registered: Jul 2007
Posts: 277
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
well there are plenty of examples knocking around: http://www.philchen.com/2011/06/21/h...sing-netfilter iptables What's not clear about this guide? No point starting from scratch when there are so many good resources already out there.
And don't think we don't know port 23 is telnet! Don't use telnet. It's evil. if this actually is telnet, I would actually suggest using ssh to reach the laptop and then running telnet from there, or using an ssh tunnel to the laptop and port forwarding port 23 from puTTY or whatever your client system is.
|
Thanks that ones a lot simpler. I would change -i eth0 to -i wlan0 though right? Yes its for telnet, and alright ill just use ssh
|
|
|
10-07-2013, 10:41 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
yes, the interface in question would be the inbound one, so wlan0 in your case.
|
|
|
All times are GMT -5. The time now is 05:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|