General :: Connect To Port Of Computer Which Behind Router?

Nov 20, 2010

When one should try to connect to port 3306 of particular ip here e.g. 345.56.67.87 it should be redirected to port 3306 of internal machine. This is the scene : How can I access the particular port of the machine which is behind the router . i.e. From out side internet I would like to connect to the port 21 of the machine (192.168.5.8) which is behind router (345.56.67.87) . Here are the details I tried : both side linux (centos)

1.enabled ip forwarding of router (345.56.67.87)

2.enabled ip forwarding of machine (192.168.5.8)

3.implemented some iptable rules: /sbin/iptables -t nat -A OUTPUT --dst 345.56.67.87-p tcp --dport 3306 -j DNAT --to-destination 192.168.5.8:3306

4.iptables -t nat -A OUTPUT --dst 345.56.67.87 -p tcp --dport 3306 -j DNAT--to-destination 192.168.5.8:3306

I tried to google on it mainly it dealt with the iptable rules. of which i applied but error is" can not connect to the port 3306 of 192.168.5.8"

View 1 Replies


ADVERTISEMENT

Ubuntu :: Ssh To Connect To A Remote Computer Behind A Router

Jan 30, 2010

I want to show you this scheme:MyPC -> router -> internet <- router <- Mom'spc I want to connect from my pc to my mom's pc using ssh. The first router doesn't represent a problem, but my mom's router does. Our IPs are both dynamic (anyway, I can easyly know them) and I have opened the port (TCP/UDP) 2100 on the router in order to open a gateway on mom's pc.The firewall is not enabled on the router, nor on mom's pc.

Granted all this, now I should be able to connect to that computer using ssh:ssh user@ip -p 2100 But I can't, I always get a "connection refused".if I do it on my intranet, I can connect without any problem (to others computers, of course, not mom's) What's the reason because I always get a connection refused?

View 1 Replies View Related

General :: Redirect Serial Port From ONE Computer To ANOTHER Computer?

Feb 25, 2011

I need redirect serial port from ONE computer to ANOTHER computer, and at the another send this port to VirtualBox with WindowsXP.VB needed because i need to use software for windoze I do this:NE computer:socat tcp-l:54321,reuseaddr,fork file:/dev/ttyS0,nonblock,waitlock=/var/run/tty0.lock

ANOTHER computer:
socat pty,link=/tmp/ttyS0,waitslave tcp:ONE:54321
Now (at ANOTHER) i've set serial port in VirtualBox as

[code]...

View 2 Replies View Related

General :: Tomato/DD-WRT Router To Act As Switch And Only NAT Some Port

Sep 17, 2010

I have a device that must use a real IP address. Currently, my ISP uses DHCP and I can have up to 4 real IP address assigned. However, the cable modem only have 1 ethernet port and it's connected to my router (running Tomato, but can run DD-wrt or other Openwrt if required). Question stems from how I can connect the additional device, requiring a real IP? would be to get a switch and connect to the CM, Router, and Device. But alas, I want to avoid this route, since:

my wiring cabinet in my home is drawing lots of power and heat already Device will be unprotected by any firewall unable to monitor the traffic to/from device.Besides, what would be the FUN in that? what I want to do is to configure the router, so that one of the switchport is removed from the normal br0 bridge. Instead, I want to make it behave like a switch on the WAN port. What's the best way of doing this? Should I create another bridge on the WAN & the device port? Can a single port belongs to two bridges? or would I need to create a subinterface first? Would I need a DHCP-relay? Am I expecting too much from my poor cheapie router?

+------+
| CM |
+--++--+
||
+----WAN---------------+

[code]....

View 4 Replies View Related

General :: Forward The Port (22) Through Router For Server - Ssh

Feb 9, 2011

Just setup an ssh server...kinda. I need to forward the port (22) through my router. I have forwarded ports before for programs so the whole thing isnt a mystery. But i need to know what to put in for a couple boxes.... Private ip: ? protocol type: tcp, udp, or both?

View 3 Replies View Related

General :: Multiple Port Forwards With Same Router Ipaddress?

Aug 9, 2011

I have forwarded ssh and rdp protocols in the router which is in remote location. And i aslo configured dhcp reservation for my windows server's ipaddress. I have added that reserved ipaddress of windows server in the RDP port forwarding ip. And i connected to windows server through remote desktop with the ipaddress of the router because i needed a public ipaddress to connect. And now i am going to add my linux servers ip also to dhcp reservation and forward ssh port and give that reserved ipaddress. can i connect to linux server with same public ip that i used to connect for windows server?

View 1 Replies View Related

General :: X11 - Unable To Add Any Port Forwarding Rules To Router

Feb 22, 2011

Say I have Computer A behind a router with NAT. I'm unable to add any port forwarding rules to that router. Then I have Computer B with a public IP address that I want to forward X windows from. This computer is headless, but does have a video card so X windows can be used. Here are some of the things I'd perform to setup my scenario.

1. Computer B, I'd run xhost + public_ip of NAT router.
2. Make sure that computer B's sshd service has X11 forwarding enabled.
3. SSH from Computer A to Computer B with the X windows forward option.
4. Once in Computer B, set the DISPLAY env variable to the public_ip of NAT router.
5. On Computer B run xclock.

At this point I'd expect to see an instance of xclock originating from Computer B onto my desktop. However this obviously won't work. The problem is that when the request is made to Computer B to forward the instance of xclock to Computer A the forwarded instance of xclock will get stuck at the NAT router. Without a port forwarding rule the NAT router will not know which internal IP to route the instance of xclock.

Here's my question. Is there any way for Computer A to initiate a connection to Computer B and then forward the instance of xclock? That way if it uses that same connection the NAT router will know which internal IP to route it to because it would be an active connection in the router's routing table. Or is there an alternative? Of course I can vnc into another computer outside the NAT network and then forward an X window to it just fine. But in the spirit of expanding my knowledge on X windows I'd like to see what is possible.

View 5 Replies View Related

General :: Turn A Computer Into A Real Safe Router?

Aug 16, 2011

I have an old hp that i installed ubuntu on and I was wondering how I can turn it into a real router. By real router I don't just mean broadcast the internet but use security software, configurations, and all the stuff normally found on a real router. What are the steps i need to take? I dont have 2 NIC's in it just one but I do have a wireless usb that I can just stick into it.

View 1 Replies View Related

Networking :: Set Up A Laptop As A Router To Connect Wirelessly To ADSL Router?

Nov 6, 2009

I have a desktop PC running Ubuntu 9.10 and Windows 7, and a Eee PC 701 laptop running EasyPeasy Ubuntu 9.04. I'd like to connect the desktop to the laptop with a wired connection (eth0), then the laptop to my ADSL router using wireless (ath0).

I have a crossover ethernet cable (I bought on ebay). I have set up my laptop with a static IP address on my LAN and it uses OpenDNS.

I have added this to /etc/sysctl.conf on the laptop:

net.ipv4.ip_forward=1

Then I tried this on the laptop:

sudo iptables --table nat --append POSTROUTING --out-interface ath0 -j MASQUERADE
sudo iptables --append FORWARD --in-interface eth0 -j ACCEPT

This is a variation on what I found on other sites describing how to set up a router. I don't understand iptables very well, but I gather that the above two lines should set up forwarding so that traffic from my router to the laptop will be forwarded to the desktop, and vice versa.

But this doesn't work. The connection doesn't even establish between the laptop and the desktop.

View 12 Replies View Related

General :: Connect To A Wireless Router?

Mar 13, 2011

I just downloaded ubuntu 10.4 today. I can't seem to figure out how to connect to the Internet.

View 7 Replies View Related

General :: Setup A Port Forward From Client Computer's Shell?

Mar 24, 2011

I notice that my bittorrent client is capable of automatically setting up port forwards with my router, and I want to know if I can do the same in a shell script. The reason is, that since my router is stupid and won't let me keep static IP addresses (it seems they forced a DHCP refresh every week to make me want to pay for a more expensive model which doesn't), I need to get my computer to change the port forward to follow my computer's changing internal network IP address. I have a couple of port forward manually entered into my router settings for web interfaces to bittorrent etc, but of course these have a good chance of being invalidated at each DHCP refresh cycle.

View 1 Replies View Related

General :: Distros Will Not Connect To Wireless Router?

Jun 12, 2011

There's only one thing preventing me from completely making the switch from Lose-dows to Linux: inability to connect my laptop wirelessly. I'm currently using an old IBM Thinkpad with an Intel Pentium III, 1.13 GHz with 384 megs of RAM. The wireless is through a Belkin USB dongle (model: F5D8053, v3) and a Netgear Duo Wireless-N Router (model: WNDR3300). Let's say, for sake of argument, I'm using Linux Mint Julia. It clearly must recognize the USB dongle, because it can detect all the other networks in the area, including the Netgear. But it won't connect to it, or any of the secured ones.

So what's the deal? It'll connect when connected directly, so it's not the computer. Or is it? All I know is I'll have to wait til I get an LFC interface (LFC=Long F**king Cable) before I want to connect Linux to the net.

View 5 Replies View Related

General :: Connect A Wireless Router To Another Access Point?

Aug 19, 2011

I have a complicated situation due to my goals and network structure. I have in mind a potential solution, a bridge, but I do not know whether it is feasible or what hardware it will require.

The network:

My apartment community provides residents with free Internet access through an ancient T1 line. We do not have the option of other Internet providers, so having a router and modem in the home are not an option. The T1 line is split among some 24 switches, one for each building, and each switch has one port per floor. At each floor, there is a D-link WAP, and each has a separate SSID and WEP key. Additionally, they control access at the switch level using Access Control.

My goals:

I'm used to being in control of my networked environment. I like to have friends over often, and most of them have a laptop, a smart phone, or both, which makes Access Control a pain. I don't want to have to think ahead and get their MAC addresses to the IT consultant while he's here during business hours. My wife and I have 6 devices, two of which require an Ethernet connection.
I use a few applications for streaming that utilize UDP (I'm not sure if the WAPs are smart enough to even handle this) and I don't like having my traffic muddled with my neighbors.

I should note that I tried extending the network with my Airport Extreme router, which apparently only works with other Apple devices. I've also looked into WDS, but that seems to require an unlikely amount of cooperation from the IT consultant on site.

The potential solution: a Linux server that acts as a router. Ideally, it could act as a webserver for a small static site as well, but let's focus on the routing. I'd like to bridge two NICs and use masquerading (Internet Connection Sharing). The public interface would connect to the WAP using WEP. The private interface would allow up to 8 devices to connect to the server.

It seems easy enough to configure the public interface, and even to bridge the connections. What I've never done before is purchase a wireless card that can accept multiple clients. Maybe they can all do this?

View 2 Replies View Related

General :: Connect A Server Using Centos 4.8 Onto A Wireless Router?

Oct 6, 2010

want to connect a linux server using centos 4.8 onto a wireless router. then clients will access mails/internet using the wireless router. how do l go about it. anyone with an example

View 4 Replies View Related

General :: Minicom Installed But Unable To Connect To Router

Mar 14, 2011

I'm new to fedora and also new to Linux too. I'm using lenovo SL410 which is not provisioned for serial port. Now I want to configure cisco router via serial-usb (Z-TEK) converter, for that I have installed minicom and still I'm not able to connect to router. Do I need to install driver for converter that I'm using?

View 2 Replies View Related

General :: Connect To The Internet With A Smartax Mt880 Adsl Router?

Feb 28, 2010

i need to connect to the internet with my huawei smartax mt880 adsl router from a linux redhat 9 box ,

- I can get into the router as user admin / admin at address 192.168.1.1

- I get missed in between pppd setup & my kernel modules insertion . . .

- can I find a clear step by step guide to get me connected to the internet ?

View 2 Replies View Related

General :: Connect To Internet Using D-Link GLB-802c Router In Ubuntu 9.10?

May 31, 2010

I'm using D-Link GLB-802C router to connect to internet, It has one Ethernet port and USB port. I want to connect to internet in ubuntu using USB port. My PC is P4 machine and it isn't a Ethernet interface. My router's driver CD includes usb drivers to windows 98, xp OS only. I want step by step guide to setup the internet connection in ubuntu. I'm from sri lanka and i using SLT ADSL connection.

View 14 Replies View Related

General :: Cannot Connect To Internet In Kubuntu Using USB Port

Jun 16, 2011

i have BSNL internet connection . I can connect in ubutnu using usb post but not working in kubuntu anymore i think i dont have the drivers for that ! how do i download drivers ? i have xp , and how can i installin kubuntu ??

View 1 Replies View Related

General :: Cannot Connect To Server To Open Port 22

Jul 28, 2011

I am trying to connect to my linux server using an SCP Key (PPK), but I can't get through using Putty, WinSCP, etc. I think Port 22 might not be open, but I don't know how to open it if I can't at least access the server using SSH.

View 3 Replies View Related

General :: Missing Eth0 Ethernet Interface In Ubuntu — Can't Connect To Router

Aug 27, 2011

I'm having trouble getting my Ubuntu 10.04 machine (Sony Vaio VGN-SR490) to connect to the Internet by way of an Ethernet cable connected directly to my router.

I'm able to connect to the Internet using this same cable using a Windows machine, so there's something wrong with the way Linux is configured.

How do I got about figuring out what the problem is and solving it?

Here are my network settings on Linux:

$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host

[Code].....

It looks like the network adapters list is empty. I will now install both Windows XP and Ubuntu Linux dual-boot. I'm still not able to access the internet, even through Windows. I'm wonder if this could be a hardware problem with the computer or a problem with the router itself. Other computers can connect to this same router, and work fine. (That's how I'm posting this after all!)

View 3 Replies View Related

General :: RT2500 Wifi Card Could Not Connect To Wireless Router Using WPA Personal?

Sep 19, 2009

RT2500 wifi card could not connect to wireless router using WPA personal.OS - RHEL4; Dell Inspiron C600; interface detected ra0

View 12 Replies View Related

Ubuntu Networking :: Unable To Connect To The Internet But Can Connect To The Router

Apr 6, 2011

I am trying to setup a dhcp server for my internal network. I have two NICs, a modem, and a wireless router. I have my server connected directly to my modem which is providing me with Internet access on eth1 and is working fine. I have dhcp and dns setup on eth0 which is connected to my router. The router shows that it is connected to the Internet but when the router gives a client computer an IP address, the client is unable to connect to the Internet but can connect to the router. I will post my configuration files below with my current configuration.

[Code]....

View 5 Replies View Related

General :: Connect To Serial Port RJ45 On Sparc Machine?

May 14, 2011

I have to connect from my linux client laptop to SPARC machine by using roll-over cable and RJ45 interface on the server. On windows I always used Tera Term but don't know how to accomplish this task from linux laptop.

Is there some kind of app like TeraTerm on linux too ?

View 1 Replies View Related

Fedora Networking :: Using Putty To Connect To A Machine / Host Name And Port To Connect?

Jul 23, 2010

Right now I have a machine set up running Fedora. I have configured inittab to accept Console Logins, but I am having problems getting my netbook running PuTTY to connect. How would I go about finding the Host Name and Port to connect to?

View 6 Replies View Related

Networking :: Port Forwarding In Router For Wol?

Mar 4, 2009

I have the wake on lan option enabled on my debian computer. If i wake it by sending:

-mac adres
-internal ip in my home network
-subnetmask
-port 7

It all works fine, but when i try to do it from outside my network and change the ip address to the router adress it wont go on. I have also opened the port 7 in my router.

View 6 Replies View Related

Ubuntu Networking :: Use One Wireless Router To Connect/detect To Another Wireless Router?

Aug 1, 2010

My son lost his USB Wireless stick for his Computer. I had thought I heard that if you had a second wireless router, you could use it somehow to detect the wireless router you have already set up in your home (like using a wireless card)? Is this what Ad-Hoc is? Either way, can this be done and if so how? I use a WRT54Gx2 Lynksys router and have a TRENDNET TEW-432BRP wireless router and also a spare D-link DI-514. I use ubuntu 10.04, and also wanted to know if I connected one of the router to his on the LAn port could he connect msaybe through an Ad-Hoc on my local computer here? He uses XP on his. I'm a newbie to linux and networking in general.

View 2 Replies View Related

General :: Using Fedora 11 To Connect To Windows 7 Computer

Jan 17, 2010

I'm trying to connect my fedora core pc to my windows 7 network.

View 4 Replies View Related

General :: Proxy Connect To Secure Computer W Key?

Nov 25, 2010

I've been searching for the exact set of tools to accomplish what I need. I was once at a LANparty. I used my webmail account and I think someone stole my password. I realized that the LAN used hubs instead of switches.

So next time, I thought I could run a server at home, which would allow me to connect with SSL (??). Then I would be able to connect to whatever website knowing that I was secure between myself and my home computer. I guess I would need to have a key before a secure connection could be made. Otherwise a "man in the middle" kind of exchange could take place.

So I guess I would need a VPN between myself and my home computer. Then my home computer would act as a proxy to allow me to surf securely. I'm not sure if these are the correct terms to use. Does anyone know what type of server I'm looking for?

View 1 Replies View Related

Ubuntu Networking :: Router Port Forwarding For Ssh

Aug 22, 2010

I have logged into my router and set up port-forwarding on port 22. I can log into the machine fine from a machine on the local network using the machines internal IP but when I try to log on from a remote machine using my router's external IP or my DyDNS host-name I get a message saying "connection refused" or "connection timed out." I have configured port-forwarding on the router and the firewall rules says that port 22 is open but when I nmap my routers external ip it says that only port 23 and 80 are open. I am very new to linux and networking.

View 8 Replies View Related

Ubuntu Networking :: Open Port 22 In The Router?

Dec 16, 2010

I have an n900 phone and I'm trying to ssh to my desktop but I'm getting an error:

ssh: connect to host 58.xx.xx.xx port 22: Connection refused

I recently started using a router for I wanted to connect to net even with n900. I've tried to open the port from the setup page of the router however it doesn't seem to work. (find below the screenshot of setup page).

I've tried to ssh through slackware I've got as a virtual machine and I have the same problem although I was able to ssh through slackware before I started using the router.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved