General :: 2 Linux Boxes / Proxy And Ssh Tunnel Forwarding

May 25, 2011

I need create ssh forwarding to other linux box that works as a proxy.I have two linux boxes(centos 5.5), one in the office(server1) behind firewall, other at colocation(server2)server1 has squid proxy instaled on port 3128.i cant use server1 as a direct proxy from home because its behind firewall.iwas able to create ssh tunnel from server1 to server2 and when i log in to server2 ican ssh root@localhost -p 12312 to server1

what i need is configure server2 so it forwards port server2:3128 to server1:3128....and i could add server2 ip addres and port to firefox proxy's and access ofice network.

View 3 Replies


ADVERTISEMENT

General :: Multiple Hop Tunnel To Chain Port Forwarding

Feb 1, 2010

I was having trouble setting up a db connection from my local machine to a db server that was configured to only accept connections from machines behind its own subnet. I had trouble setting up a multiple hop tunnel for chaining port forwarding through my firewall machine on the same subnet as the db. My first attempt involved two port forwards, on localhost and on the firewall machine, which didn't work for me. This approach I found at URL... involved constructing an end to end connection to the db via the firewall machine.

View 2 Replies View Related

General :: Share Folders In LAN With Only Linux Boxes

Nov 1, 2010

I have tried to find a simple "how to". People testify how simple sharing over Linux networks is, but I just can't make it.I have a desktop with Mint LXDB on it. My wife has a laptop with Ubuntu Lucid Lynx connected with a wireless LAN to a D-Link router.

But I can't open mine from her laptop. My aim is to connect her to a backup station connected to my computer. I have been looking into https://help.ubuntu.com/community/SettingUpNFSHowTo. It is six pages long, complicated and i can't make it work.If networking in Linux should be so simple and native, there must be a better way..I hope.

View 14 Replies View Related

General :: Sharing Printer Between 2 Linux Boxes

Nov 9, 2010

I have a printer connected to one PC running slackware. The printer is set up to be shared through Samba and I can print to it from my Windows laptop.I would however like to use that printer from another Linux machine (running Ubuntu).Do I need to go through Samba to do this or is there a better way with it being linux-linux?Everything I've found on google relates to going from Linux to Windows unfortunately.

View 5 Replies View Related

General :: Compare Directory/files In Two Different Linux Boxes?

Apr 5, 2011

How can I use diff to compare the files of similar directories on to diferent linux boxes.

View 1 Replies View Related

Networking :: Unable To Ssh Linux Box From Other Linux Boxes

Mar 12, 2010

I am unable to ssh a Linux box from other Linux boxes; also tried to window putty.Although I am getting the password prompt instantaneously.So far, by comparing logs of other server, I am just able figure out that "debug2: callback start" is not coming in ssh -vvv logs.

View 2 Replies View Related

Server :: SSH Tunnel Forwarding With No Shell?

Jul 9, 2010

I am trying to have the SSH tunnel Remote forwarding command in a shell script. I should be able to do 2 tasks, but unable to get that going.1) I have 3 servers Server 1, Server 2, Server 3.I have my Database running on Server 1 and my script running on Server 2 which should be able to do port forwarding from Server 1 to Server 3.so for example on Server 2ssh -i $ssh_key -R 9000:Server1:3333 root@Server2.

I need to be able to stick this in a shell script something like
getTunnel()
{

[code]...

View 1 Replies View Related

Server :: SSH Tunnel Port Forwarding

Mar 18, 2010

I currently have a gui running on port 8000 on some of my remote servers, unfortunately i do not control the firewall so can not open that outbound port to access it from hereIs there a way with an ssh tunnel to redirect that to another port so i can access it from here?

View 2 Replies View Related

Networking :: Forwarding All Traffic To The Proxy To Another Proxy

Oct 28, 2009

At the moment I have a proxy and all the users have to configure it in the browser to access internet. I want to make the users able to browse even without configuring the proxy in the browser. but eventually it should be received in the proxy rather than giving an error to the user. I heard with transparent proxy I can redirect all the traffic from a particular network, to a particular host( ie my existing proxy).

I tried this using firewall rules. But then the existing proxy doesn't understand the protocol of the requests. I heard that it should be in the kind of proxy protocol.

View 1 Replies View Related

Ubuntu Networking :: SSH Tunnel / Port Forwarding

Jul 28, 2011

I don't understand the concept of ssh port forwarding and tunneling.I was going to set up a remote desktop (vnc) connection to my grandmother's laptop that we'll give her soon so if something goes wrong i can fix it from here (she lives on the other side of the world). However, i've read using vnc plain over the internet isn't secure, and that i can secure it by running it through an ssh tunnel.That's what i've understood so far. However, from there on i get confused.

I'd have to run both an ssh server AND a vnc server on her laptop? So what i'd have to do is ssh into her computer, and then while logged on on her computer, somehow open a vnc connection back from the remote server to the local computer? Then i'd go back to my local computer and open a port where the vnc connection is waiting? From the concept, it would seem like i should be able to tunnel all the regular network traffic from the local computer to the remote one through ssh?

View 4 Replies View Related

General :: Proxy - Linux Alternative To Fiddler2 ?

May 5, 2011

my use for fiddler is completely different; Fiddler2 is my example.In Fiddler2 I can download streams from websites ; for example if I stream a video or listen to music I can download the entire stream from Fiddler.In linux is there something similar? I compare to fiddler because it acts as a proxy and allows me to download these streams in windows quite easily.would be can I download a full stream from Wireshark?

View 1 Replies View Related

General :: How To Configure Proxy Server On Linux

May 19, 2010

I am new to Linux and need to configure a Linux machine with any server. I plan to configure Proxy server. What should I do?

View 1 Replies View Related

Networking :: SSH Between Two Linux Boxes / Newbie Having Troubles

Oct 27, 2010

I'm trying to set up a mini grid of linux boxes, but am quite new to setting linux up.I've installed fedora 13 on one and would like to be able to SSH in to it. All boxes are within a university network (under a proxy if that makes any difference?).I can mount a shared disc easily enough, and SSH out to other computers (that I didn't set up myself),I've tried following a few threads, temporarily taking down firewalls, disabling SELinux, messing around with iptables but can't seem to manage it.

View 6 Replies View Related

Networking :: How To Set Up Ssh Tunnel Through Http Proxy?

Mar 10, 2010

My school network uses a http proxy to access the internet, but I am dubious about the security, and so I would like to use http inside ssh to keep my data secure. I don't really know where to start on this, so a step-by-step guide, or links to resources, would be helpful.

View 2 Replies View Related

Ubuntu Networking :: Can Browse Windows Network / But Not Other Linux Boxes

Mar 29, 2010

I noticed tonight when I go to Places, Network, it will bring up an icon for Windows Network, and I can drill down to my Windows box. But I can't see the other Linux box (a laptop running Kubuntu), and the same behavior occurs on the laptop when trying to view the Linux desktop. The laptop is connected wirelessly, if that makes a difference. Each box can ping the others, but I don't yet know how to browse one Linux box from the other Linux box.

View 1 Replies View Related

Networking :: SSH Tunnel Through NTLM Authenticated HTTP Proxy

Mar 7, 2010

I have a problem setting up a SSH tunnel. I know how it's usually done, but the setup is different this time. I am behind a HTTP(S) and FTP proxy, that does NTLM authentication, and I want to access a server beyond the proxy.
MY CLIENT <-> LAN <-> HTTP PROXY <-> INTERNET <-> MY SERVER

So far, the best I have achieved is installing and configuring CNTLM as a local proxy for the authentication part. Using CNTLM, I managed to access and mount a secured (https) DAV share using davfs2. In theory, CNTLM should let me setup permanent tunnels from local ports to distant ports, and it does; however these tunnels don't seem to work for SSH nor for IMAP (another protocol I tried).

I suspect the problem is that neither SSH nor IMAP is HTTP- or FTP-based, but anyway it does not work. So back to square one: how should I proceed to get ssh to connect through the HTTP proxy (with NTLM authentication) to the remote server? For that matter, if there's a better way than SSH to create a tunnel, that would work in my situation, that's OK with me. Just in case, here are the relevant parts from my firewall setup on the server:

Code:
# default policies
iptables -t filter -P INPUT DROP
iptables -t filter -P FORWARD DROP
iptables -t filter -P OUTPUT ACCEPT

# reset
iptables -t filter -F INPUT
iptables -t filter -F FORWARD
iptables -t filter -F OUTPUT

# allow continuation of established connections
iptables -t filter -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t filter -A INPUT -f -j ACCEPT

# allow local connections
iptables -t filter -A INPUT -i lo -j ACCEPT

# open ports:
# ssh
iptables -t filter -A INPUT -p tcp --dport 22 -j ACCEPT
Yves.

View 2 Replies View Related

Networking :: Forwarding All Internet Traffic Through Proxy

Jul 19, 2011

My PC is part of a LAN so while configuring eth0, we specify the Gateway to access all other resources in the network. The PC successfully access Internet through a proxy server configured in Mozilla(manual proxy config) but the update option or the Synaptic Pkg mngr are not able to access internet anyway. I have tried the option "Apply System Wide" in "Network Proxy" but no progress so far.

I also tried to forward all request coming for udp/tcp on port 80 to the proxyserver on a specific port, but with no success. Also I can't ping any website from terminal, reiterating the fact that I can access internet in firefox through the proxy on a specific port.

View 2 Replies View Related

Networking :: Http Request Forwarding To Proxy

Feb 26, 2009

hi

i want to redirect the packet to proxy server. can u help me.

Present network.

MY internal network ==> switch ==> proxyserver ==> router ==> internet.
(for internet i use
to connect proxy, in web browser==> lan settings ==> proxy server ip address )

What i want is

My internal network ==> getway or firewall ==> switch ==> proxy server ==> router==> internet. ( where this getway or firewall i can configure for forward http request to proxy server.)


so that i can separate my internal network from intranet but able to access the internet.


help me out

raghu

View 2 Replies View Related

Ubuntu Servers :: Port Forwarding Setup Using IPTables - Transparent Proxy

May 13, 2010

I'm new to linux, but enjoy using it very much, especially without a GUI, console is fun! I need to set up port forwarding. We have 3 servers, 1x running Ubuntu server 8.04 (used as transparent proxy), 1x server 2003, 1x windows xp.

The linux box has the following ips:
eth0 (internal) 192.168.1.5
eth1 (external) 192.168.0.7

Windows server 2003:
192.168.1.6

Windows XP:
192.168.1.9

Router:
192.168.0.1

The router automatically forwards specific ports to 196.168.0.7 (Linux eth0). From there I want to forward port 8585 to 192.168.1.6 and 3000 to 192.168.1.9. Is there a way that I can do this using iptables?

The commands that I think I'm gonna use look like this:
iptables -A FORWARD -s 192.168.0.0/24 -p tcp --dport 8585 -d 192.168.1.6 -j ACCEPT
iptables -A FORWARD -s 192.168.0.0/24 -p tcp --dport 3000 -d 192.168.1.9 -j ACCEPT

Would this be a correct way of doing it? My biggest problem is that I can't test it without going live, and if I go live and something doesn't work, the entire building will be left without internet, people will hate me. Also, The proxy captures all data on port 80 and forwards it to 3128 so that the proxy can monitor the usage, and a few systems runs fine with it, others however can ping websites, and internet explorer says "website found, waiting for reply" but the webpages cannot be displayed.

View 9 Replies View Related

Networking :: Setting Up Squid Proxy To Virtual Linux Soho Router?

Mar 31, 2011

i must make this work with the use of virtual pc's. I have vm player and installed fedora ( the latest version ) and one xp . So i have 2 virtual pc's. I'm making it simple for start so i can add more pc's when i see that it is working. I have setup a dhcp server at the fedora virtual pc. The fedora virtual pc is like a soho router. The xp pc is getting ip from dhcp while the fedora one has a static one.

My pc is behind an adsl router. Both virtual pc's can see each other which means i have no connectivity issues.Im trying to setup a squid proxy ( transparent one ) so for example the xp pc can access porn sites and such. I used all required configuration for the squid to work and started the service. Ive also inserted with iptables the commands to forward all incoming port 80 packets to port 3128 ( the squid ). It doesnt seems to be working and i thik i know why but i dont know how to fix it.

Because the xp has a gateway at 192.168.1.1 ( the adsl router ) packets go directly to it and not to the soho router ( fedora virtual pc as i intend to do) What can i do to solve this problem ? How can i forward all packets to go to the fedora virtual pc first and then the fedora pc to forward them (if necessary) to the adsl router? PS. I used Bridged connection on the networking configutration on the vmware player ! If you also want i can post the code for squid or iptables if needed !

View 1 Replies View Related

General :: Moving From Paid Linux To Unpaid Linux CenOS - Red Hat (KVM Virtualization)

Dec 21, 2009

if anyone of you have shifted using Paid Red Hat Linux with CentOS, and what are your experiences of moving from Paid Linux to Unpaid Linux CenOS. When do you suggest a person use Paid Linux and when to use Unpaid Linux?

View 1 Replies View Related

General :: Verifying Qlogic FC HBA Adapter In Linux ( SUSE Linux)

May 5, 2010

i would just like to verify that the command

lspci would show the FC adapter installed

is there any other command that i can use to verify the FC adapter is being installed

View 4 Replies View Related

General :: Migration Of C++ Application From SuSE Linux To Red Hat Linux

Feb 12, 2010

I want to Migrate my C++ Application from SuSE Linux to Red Hat Linux.What impact analysis i should do?

View 3 Replies View Related

General :: Convert HTTP Proxy To SOCKS Proxy?

Feb 27, 2010

I've been doing some security testing in a lab environment that does not have direct internet access. It's actually a little complicated: From home to connect to my lab machine, I

1. SSH to machineA.
2. SSH from machineA to machineB

where machineB is my actual lab machine. neither machineA or machineB allow anything other than SSH, and machineB is only accessible from machineA. However, I really need to run yum on machineB. I have managed to get internet access via Firefox on machineB by creating a series of SOCKS proxy via SSH.

1. machineB: ssh -L 12345:localhost:12345 user@machineA
2. machineA: ssh -D 12345 user@machineC
3. machineB: configure firefox to use socks proxy, localhost, 12345

where machineC has internet without limits placed. This is the only way I have managed to get internet working. I tried using ssh -L all the way from machineB->machineA->machineC but it didn't work (even when setting Firefox to use http proxy). I tried using ssh -D all the way, but again that doesn't work either.

I do have access via Firefox using socks proxy. However, yum update fails to retrieve mirror list, and from what I have found I don't believe yum supports socks proxy directly. Instead, it uses http_proxy / ftp_proxy. how to get yum to go out over the SOCKS proxy I created (same one using in Firefox)? It seems like since Firefox can access the internet and everything without issues, i should be able to get yum to tunnel through the same connection to access everything.... I tried

[URL]

View 1 Replies View Related

General :: Force Wget Proxy To Non Environment Proxy?

Aug 17, 2010

is there a way to force wget to use a specific squid proxy when making connections ? - I use a squid proxy normally, but I need this specific request to go via a different one. I dont have to use wget, I just need a way to test squid's blocking rules by requesting various pages through it, this proxy is not my normally proxy on the network and so I cant rely on wget taking the environment variable.

Also, this is as part of a script, so anything that avoids editing wget config files would be best. - Perhaps curl can do this ? - currently im using the exit code of wget to determine if the connection was made.

View 1 Replies View Related

General :: How To Share A Folder From Linux To Linux

Mar 17, 2010

how to share a folder from linux to linux systems and setting password to open that folder

View 14 Replies View Related

General :: Remote Support For Some Boxes Via Ssh

Apr 14, 2011

I want to provide remote support for some linux boxes via ssh. I have no passwords on these machines and they are behind a nat, without port forwarding.My idea was, that whenever a client needs my service, he/she types a command on her machine, which builds up a two-way connection to my server. Using this two way connection I would like to do the task, he/she asked me to.It would be an ideal solution, if it would be transperent for the client, like a shared screen session...

View 3 Replies View Related

General :: How To Have Same User Account On Two Different Boxes

Jun 5, 2010

I have two Fedora 10 boxes. Both have a user account, Andrew. I use this account all the time.

Now when I put my USB drive (ext3-filesystem) in box I, create a file in it. It works. But when I attach it to box II and try to access the files, it gives me error - Permission denied. I have to use

Quote:

sudo chown -R Andrew

Only then I am able to access the files in it.

When I attach my drive to box I again, it also gives me error - Permission denied. So in both boxes, I have to use

Quote:

sudo chown -R Andrew

first. Otherwise I get Permission denied message.

This means Andrew on both systems is different. How can I make Andrew account on both systems same? So that I can access files on my usb drive without running chown all the time.

View 5 Replies View Related

General :: SSH X Tunnel Via Non-X Server

Jul 7, 2010

I'm working remotely at the minute, but have several 'incoming' automatic reverse shells connecting to a dedicated server. This dedicated server does not have X, but several of the 'incoming' shell servers do. Basically, take three machines, laptop, server, client. Laptop and client have X, server does not. All three machines have password-less logins to each other (laptop > server, server > client) and can password-lessly establish a shell.

I've tried ssh -X user@server "ssh -X user@client gui-application" and, no suprise, I'm getting 'Cannot open Display" messages. Does anyone know I nice one-liner for this kind of tunnelling?

View 3 Replies View Related

General :: Pass Several Files Between 2 System Boxes?

Aug 2, 2010

I have to linux boxes (ubuntu 10 and ubuntu 9), both are in the same network - i can do ping between them- so, I need to pass several files between them and i want to do it using the network, i went to nautilus and then smb://192.168.0.1 but i couldn't connect.

my question is:
-how can I do this?
-do I have to do it using samba?

View 4 Replies View Related







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