Jump to content
Sign in to follow this  
wizzard

port forwarding in lan

Recommended Posts

i have a linux server with 2 interfaces eth0 wan interface and eth1 lan interface

 

in lan i have 192.168.1.0/24 and the ip for eth1 is 192.168.1.1

 

i want that all trafic from lan which came on eth1 on port 21 to be redirected in lan on another ip lets say 192.168.1.2 port 21

 

if 192.168.1.4 want to acces 192.168.1.1 on port 21 (ftp) that request to te redirected on 192.168.1.2 port 21

 

 

how i can do that ?

Share this post


Link to post
Share on other sites
how i can do that ?

 

ok .. thats completely possible with iptables .. which can forward it all on :)this gives a quick example

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...