Jump to content

Port forwarding


Guest no_username_plz
 Share

Recommended Posts

Guest no_username_plz

Hi.

 

How can I set portforwardnig?

 

I have two LAN. I will set a Mandrake as a router between those LANs.

How can I access to comp in LAN2 from LAN1.?

 

I will set PCanywhere to WIN computers, but how to set this:

 

I will access from LAN1 (from 192.168.5.5, for example) to 192.168.10.1:881 (Mandrake router for LAN2) and Mandrake forwards me to 192.168.10.15:123 (example from LAN2).

 

Sorry. Weak english :(

Edited by no_username_plz
Link to comment
Share on other sites

Guest no_username_plz
You need to set up IP masqueraging in NAT. 

I can tell you how to do it via webmin but not vai the mandrake tools. 

 

Is this any good???

 

(p.s. I have it working with eth0,eth1 and eth2 and it works great)

That would be cool.

I was surfing and I didn't find any good (for me) tutorials.

 

Also plz tell me what should I install and edit :)

 

tnx

Link to comment
Share on other sites

Hopefully its follow the pictures

 

 

Start webmin

either

export BROWSER=konqueror (or preferred)

then

webmin

 

OR

https://localhost:10000

in a brwoser

log in with root and root passwd - I crossed out whats not relevant

The first cross is for wireless, in case it goes out of range it reconnects

everything is the default inside

 

snapshot1.png

 

then the two crossed out are vtun's, I doubt you want these ....

actually YOU dont want these!!!

 

snapshot2.png

 

APPLY :D

Link to comment
Share on other sites

Guest no_username_plz

sorry

 

I have done it (as U say) but I still dont know how to setup forwarding (if someone contact Linux-server with this ::: 192.168.5.5:6144, than to route him to 192.168.5.14 , for example)??

 

server is 192.168.5.5

Edited by no_username_plz
Link to comment
Share on other sites

OK,

Now you need to choose the middle option at the top...

mangle

 

Im not sure exactly yet which port you wish to send it to instead but you have five categories

 

It sounds like you want INCOMING PACKETS

You can define these by network and port and have an incoming and outgoing..ie TO/FROM

If you want to send these packets to a different port on a different comp you USE forwarding etc.

Link to comment
Share on other sites

Guest no_username_plz

OK.

 

I will try to give U example ...

 

For example there is a LAN with WIN machines and Linux as gateway and router.

Linux has IP 10.10.10.10 Internet IP and 192.168.5.5 on LAN and Windows are 192.168.5.1, 192.168.5.2, etc.

 

If I want connect (from Internet) to 192.168.5.3 Windows throughout Linux router (NAT), how should I setup ipmasquarading or portforwarding or whatever :)

Edited by no_username_plz
Link to comment
Share on other sites

Start off with the VERY OPEN setting i gave you.

Realise this is not a firewall (whatever the name of the webmin module) becuase its set up to let EVERYTHING through.

 

Once you get things working you can tighten up...but its easier for testing right now open.

 

At the moment, if you filled in your IP ranges then its forwarding everything through NAT.

 

If you look at my crossed out Im using a VTUN on port 5000

This is PREROUTING on NAT.

In other words the port 5000 is just passed through NAT and ends up as port 5000 on a different address.

 

what I think you are trying to do (correct me if Im wrong) is take a request to a certain port (lets say ftp on 21) and pass this to a different port on a different IP.

Lets say you have a windows ftp server listening on port 10001

 

To do this you need mangling....

The NAT passes the requests to the IP, the MANGLING changes the port.

 

You havn't said WHAT SERVICES you are trying to run....or in which direction.

It would help!!!!!

Link to comment
Share on other sites

Guest no_username_plz
OK, now you know more than me!!!

I must read that.... good post :D 

So if I said anything wrong above can you correct me that way if someone else reads this they don't make a mistake :D

It is really easy to setup :)

 

enjoy

 

or:

 

"Jes' dobro jarane" as we here say

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...
 Share

×
×
  • Create New...