Guest no_username_plz Posted February 10, 2004 Report Share Posted February 10, 2004 (edited) 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 February 10, 2004 by no_username_plz Quote Link to comment Share on other sites More sharing options...
Gowator Posted February 10, 2004 Report Share Posted February 10, 2004 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) Quote Link to comment Share on other sites More sharing options...
Guest no_username_plz Posted February 10, 2004 Report Share Posted February 10, 2004 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 Quote Link to comment Share on other sites More sharing options...
Gowator Posted February 10, 2004 Report Share Posted February 10, 2004 Erm, Just IPTABLES and Webmin..... Wait till Im home and i can check this is correct Its really only a few minutes... Quote Link to comment Share on other sites More sharing options...
Guest no_username_plz Posted February 10, 2004 Report Share Posted February 10, 2004 Erm,Just IPTABLES and Webmin..... Wait till Im home and i can check this is correct Its really only a few minutes... :) ok Quote Link to comment Share on other sites More sharing options...
Gowator Posted February 10, 2004 Report Share Posted February 10, 2004 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 then the two crossed out are vtun's, I doubt you want these .... actually YOU dont want these!!! APPLY :D Quote Link to comment Share on other sites More sharing options...
Guest no_username_plz Posted February 11, 2004 Report Share Posted February 11, 2004 TNX I will let U know did I make it :) Quote Link to comment Share on other sites More sharing options...
Guest no_username_plz Posted February 11, 2004 Report Share Posted February 11, 2004 (edited) 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 February 11, 2004 by no_username_plz Quote Link to comment Share on other sites More sharing options...
Gowator Posted February 11, 2004 Report Share Posted February 11, 2004 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. Quote Link to comment Share on other sites More sharing options...
Guest no_username_plz Posted February 11, 2004 Report Share Posted February 11, 2004 (edited) 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 February 11, 2004 by no_username_plz Quote Link to comment Share on other sites More sharing options...
Gowator Posted February 11, 2004 Report Share Posted February 11, 2004 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!!!!! Quote Link to comment Share on other sites More sharing options...
Guest no_username_plz Posted February 12, 2004 Report Share Posted February 12, 2004 guys sorry... I did make it with this http://tldp.org/HOWTO/IP-Masquerade-HOWTO/ thanks a lot Quote Link to comment Share on other sites More sharing options...
Gowator Posted February 12, 2004 Report Share Posted February 12, 2004 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 Quote Link to comment Share on other sites More sharing options...
Guest no_username_plz Posted February 12, 2004 Report Share Posted February 12, 2004 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.