Linux - NetworkingThis 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.
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.
Amitsharma spoke about "port-forwarding with PREROUTING+POSTROUTING"
If I could give that a try?
What would the commands look like?
The setup;
Freebsd box
rl0 is the lan NIC with ip 192.168.45.146
rl1 is the wan NIC with ip 10.0.0.1 , but the ip I use to connect to the freebsd box
is 41.241.*.* (via adsl).
Connect to freebsd box via port 4899 and gets forwarded to the unix server;
ip 192.168.45.1 on port 23.
The unix server's gateway is their satelcom router's ip; 192.168.45.10.
Hi again dear, (sorry for delayed reply)
You know what; it seems as these both boxes(192.168.45.1 & *.146) fall under a same LAN; unix server having some other default gateway would'nt stand for much problem i think.(i am still not sure because of non-availabilty of routing tables of 192.168.45.1 box)
Anwyays you can try out these below mentioned PRE-ROUTING + POSTROUTING commands. And karelvdm; as i am also not sure whether your adsl modem is being forwarding those 41.241.*.* packets to your box 10.0.0.1 ethernet or is it doing NATing, so in the first below mentioned PREROUTING rule, if it doesnt work, you should change the -d 41.241.*.* to -d 10.0.0.1
It seems that either iptables is not installed or the path variable has not been updated for an alternate location installation.
Like the way we have
Code:
rpm -qi iptables
for telling whether queried application is installed or not in REDHAT (afaik), you must be having some way to check this at your SLED10 distro as well.
Why dont you install iptables either downloading from its website or from the cds of your distro.
Might be able to get it to work.......
Connect via a vpn connection to the freebsd box with user authentication,
then telnet to the server(192.168.45.1).
The client access software that the cleint uses creates a telnet session.
Busy setting up the vpn connection. Let U know how it goes!
I like ya sign, it tells me about ya attitude. It seems you are doing the job same way you have mentioned; Trial & ERROR & keeeeep trying until you get the results.
Karelvdm, You are doing a good job. Keep it UP & yea stay me updated.
It works!!!!!!!
Now I want to set up a Suse box with VPN.
I prefer Linux to FreeBSD.
My boss has a friend that is a guru on FreeBSD, he greated the vpn the FreeBSD box after I pointed them into the right direction, but they don't want to show me how, so now I'm gonna setup my Suse box and show them......after I'm finished with my Trixbox.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.