0
votes
1answer
8 views

iproute2: How do i connect one machine to the internet via another

I have the following setup: A > 169.254.8.125/16 <--(ad-hoc)--> 169.254.9.109/16 < B > 192.168.178.21/24 <--(wifi)--> 192.168.178.1/24 < AP/router > internet I want to connect A to the ...
0
votes
1answer
33 views

iptables does not seem to be applying SNAT to packets sent on a raw socket

I'm writing packets from a user space program to my wireless interface wlan0. I've set up a SNAT rule with iptables as follows iptables -t nat -A POSTROUTING -o wlan0 -j SNAT --to 192.168.1.3 And ...
0
votes
0answers
43 views

How to share folders b/n VirtualBox and Win 7 using NAT adapter and Samba

When I had my Adapter set to Host Only I followed this tutorial and was able to view the folder # \samba\share\ only buy typing \\192.168.55.444 in my windows start up. So, this means I could share ...
0
votes
1answer
489 views

Accessing VirtualBox with NAT adapter using SSH

I have a CentOs 6.5 running on a VirtualBox. I am using NAT adapter and my inet addr is 10.0.2.15 But, I can't access this host using ssh root@10.0.2.15 I get ssh: connect to host 10.0.2.15 port 22: ...
0
votes
1answer
73 views

packages from router dont match iptables dnat rule

I have the follow rules to forward port 443 from external to a internal host: IF_INET=ppp0 IF_INET_IP=1.2.3.4 # Router External IP IF_LAN_IP=192.168.0.1 # Router Internal IP ...
1
vote
1answer
202 views

Odd packet loss through NAT with two WAN interfaces

I have got a Linux server machine which I also use as network gateway / "router". It has three network interfaces active – two network interfaces connected to the internet over different ISPs and the ...
0
votes
1answer
168 views

Editing IPTABLES nat rule in cron job

I am sitting here with an issue: I need to switch the source interface for iptables' NAT rule at a given time. I want to basically do soemthing like this - caution: concept code: #!/bin/bash if [ it ...
1
vote
1answer
67 views

Forwarding all traffic to other server with iptables

Assume I have a sever with X.X.X.X IP address and a web server with Y.Y.Y.Y IP address. How would I forward web traffic from X.X.X.X to Y.Y.Y.Y using iptables? My servers run Linux and use iptables
0
votes
1answer
134 views

Linux nat with a secondary ip address

I want to setup nat on a server/router with a multiple public ip addresses (on different subnets and with different gateways, but the same physical ethernet interface), using address A for all local ...
0
votes
1answer
1k views

Forwarding all incoming traffic on eth0 to go to eth1

I am trying to setup my raspberry pi to sit between my router and my modem. I'm basically trying to set it up as an intercepting proxy so that all web traffic goes through the proxy. I have the ...
1
vote
2answers
199 views

Connecting to an SSH server behind a NAT

I am having trouble connecting to an SSH server behind a NAT on an ubuntu workstation. I've installed openssh package(both the client and the server) and forwarded port 22 through the NAT and tried to ...
0
votes
1answer
79 views

How to NAT to different interfaces under linux?

I have an Ubuntu 12.04 server with 4 ethernet interfaces, 2 of which connect to nonconfigurable network devices on eth5 and eth6. Each device can only be reached on 192.168.100.1 via telnet. I believe ...
0
votes
0answers
107 views

unable to configure nat on centos 6.4

i have configured nat on my centos 6.4 on vmware workstation with the following cofiguration i have two ethernet adapters eth0 and eth1 eth0 has public ip automatically taken by dhcp eth1 has private ...
1
vote
3answers
158 views

Use single static IP for multiple machines

I currently have a DSL modem at home that has a static IP (say 77.77.77.77). This modem is connected to a wireless router which has a few machines connected to it. For sake of simplicity, from now ...
2
votes
1answer
119 views

How does uTorrent can automatically forward port through Linux Net Filter based firewall?

I have dilemma: How it is possible that uTorrent shows on my internal machine with internal IP, that my connection is OK (green check in the bottom right of its window), while I never forwarded any ...
1
vote
1answer
364 views

iptables NAT doesn't preserve remote IP

I have the iptables rules below forwarding incoming ssh traffic on port 2222 to a virtual machine running in a vmware "vmnet" network on the same host. 192.168.1.1 192.168.1.40 +---------+ ...
1
vote
2answers
2k views

iptables gives me and error “can't initialize iptables NAT”

I am trying to use iptables and it is giving me the following error root@vikkyhacks:~# iptables -t NAT -L iptables v1.4.18: can't initialize iptables table `NAT': Table does not exist (do you need to ...
0
votes
1answer
246 views

Iptables filtering and NAT with secondary IP address

I have two IP addresses on my physical eth interface. Lets say 192.168.10.7 (eth0:0) and 192.168.0.7 (eth0). So it works. But I use application, working on the only one of this addresses on port ...
1
vote
0answers
48 views

How do I configure NAT to forward external requests?

I have three Raspberry Pi's connected to Linux machines and one computer (also a Linux machine) connected to a router which is connected to the Internet. My goal is to configure each Raspberry Pi and ...
0
votes
1answer
261 views

How to proxy windows TCP port (that is under NAT) via linux with public IP?

I have a server (where I am administrator) to which I can connect via MSTSC.exe from windows under NAT. server is under NAT. I have ssh and sudo rights to Linux server with public IP to open ports 2k ...
0
votes
1answer
662 views

Route between two network interfaces with same IP address?

I would like to temporarily monitor/log/analyze what traffic is going in and out of my home. I would also like to keep my current router configuration unchanged. The router is a WiFi Home Router, so I ...
0
votes
0answers
316 views

Port Forwarding to internal device without default gateway using iptables

I need to access externally (via Internet) one device in internal network which has no default gateway configured. Just IP and Mask. The standard iptable rule to accomplish the first part of this ...
2
votes
1answer
2k views

How to use NAT iptables rules for hostapd

My PC is equipped with two net interfaces - wlan0 and eth0. I want to use WiFi port as access point on wlan0. So i use hostapd facility and it works properly in routing mode in local network. Users ...
1
vote
1answer
270 views

iptables, redirect from ip address to loopback

I have an Apache web server listening in 127.0.0.1:63280 eth0 has IP: 172.200.200.200.1, and try to connect from workstation IP 172.200.200.200 iptables -t nat -A PREROUTING -s 172.200.200.200.1 -p ...
1
vote
2answers
223 views

Route/NAT/Port forwarding for one port only?

I'm not sure what is the correct term to use and I don't know what tools should I use. The only thing I have is a goal which I'd like to accomplish. I have two linux machines(A and B) and a remote ...
2
votes
2answers
3k views

ssh through a router without port forwarding

I have a linux server, and I want to put it in a home network behind a router. I need to ssh to this server sometime from outside, but I don't want to set up port forwarding because I don't have ...
0
votes
1answer
206 views

Cannot reach specific public IP

My server (runs on Ubuntu 12.04) is behind a NAT and has to access a specific service that has a public IP address (64.*.*.*). The problem is that I cannot reach that specific public IP (all other ...
0
votes
0answers
327 views

How to access Ubuntu running Openfire from the Internet (Public IP)?

I have Openfire installed in my Ubuntu server using port 7070. Now using ipchicken I found my public IP (example: 111.11.000.0/7070). When I try connecting from another PC through connected to the ...
0
votes
0answers
25 views

Can we capture the incoming packets of a TPLink router? [duplicate]

I wonder if we can capture the incoming packets of a TPLink WR340+ router. We want to check all packets from some specific IP. Is it possible? Steve Peng More information: ...
0
votes
1answer
792 views

Host server at home behind ISP NAT using STUN

I'm hosting my own Linux server at home, which I will be using as a VPN server and web hosting if possible, problem is that I'm behind my ISP's NAT which means that I'm unable to connect to my server ...
0
votes
1answer
56 views

How to set up a network share to be always accesible while roaming?

At home I have a Raspberry Pi which I use as a NAS and torrentbox. I would like to set up a network share on it that I can access from outside my LAN so that I can stream music and video when I'm at ...
0
votes
0answers
150 views

1:1 NAT IP address using iptables

Suppose I have 2 internal networks: 1.1.1.0/24 and 1.1.2.0/24 I would like to NAT a specific IP address from one network to the other, in which the new address would be obtained via DHCP. For ...
4
votes
3answers
369 views

Set up Linux box as WAP for MyBookLive?

I inherited an old Linux box as well as a MyBookLive and would like to make the MyBookLive available over my wireless, essentially using the Linux box as a gateway. I just wiped the Linux box (home) ...
0
votes
1answer
577 views

What am I missing to enable connection sharing on my Linux box?

I'm having problem setting connection sharing in my Slackware system. I enabled rc.ip_forward: $ cat /proc/sys/net/ipv4/ip_forward 1 And I added the next iptables rule (and I've no other rules): ...
1
vote
0answers
446 views

Routing table on Linux not respected

I have a very specific problem, building a Linux VPN endpoint (with external VPN Gateway), which should route certain networks over the tunnel, others via default gateway. The Linux VPN should do a ...
1
vote
0answers
148 views

Is there a decent diagram of packet flow for a modern era (2.6+) iptables setup?

I'm currently trying to debug a particularly hairy set of DNAT based iptables rules (the UDP reply never makes it back to the original requester) and I'm struggling to visualise the packet flow ...
3
votes
4answers
3k views

how to ssh two computers behind NAT and Firewall, without third computer

I am trying to ssh into my Linux box at home. My home is a dorm-style environment - NAT and Firewall with personal laptop running Arch Linux. My work is corporate style Windows 7 - NAT and proxy ...
1
vote
0answers
145 views

How to provide “reverse ssh” to a shell?

Scenario: Many embedded devices (running Linux) out in the fields, behind routers so NAT'd and we can't make connections to them. We need for a support person to be able to initiate a terminal/shell ...
2
votes
0answers
60 views

Linux VM can not connect to the internet

I'm trying to set up an virtual server with connection to the internet. When I start a ping to the local network, there are no problems. When I try to ping an address from the internet, it shows that ...
0
votes
0answers
188 views

Unable to open websites that use HTTPS on linux

I have the following network configuration: My PC 192.168.1.20/24 uses 192.168.1.1/24 as a gateway. Dlink-2760U router with Local address 192.168.1.1/24 has a VPN connection open with the provider ...
0
votes
1answer
286 views

NAT works for Windows guests but not for Linux guests

I have just updated to VMPlayer 4.0.3 (from 4.0.1) on a Windows 7 host. All the various guests are configured for NAT networking and DHCP, and before the upgrade every OS could reach out the ...
0
votes
0answers
412 views

Robust way to acces my computers behind NAT and firewalls?

I am searching for a robust way to access my computers (on any port when possible) whether they are behind several NAT gateways or not. By robust I mean I want to access the computers whenever they ...
4
votes
1answer
4k views

VirtualBox NAT over proxy

I use VirtualBox 4.1.8 on a Ubuntu 10.04 host system. I have an HTTP proxy server on the host system. How do I configure the VirtualBox to NAT the virtual machine's network and use the HTTP proxy for ...
2
votes
1answer
711 views

Linux PPTP VPN and gateway woes

I have an Amazon Linux machine running in an Amazon EC2 instance. I am connecting to my office's VPN as follows: sudo pppd pty "pptp pptp.<DOMAIN>.com --nolaunchpppd --loglevel 2 --debug" file ...
1
vote
1answer
461 views

Shorewall NAT problem

I have installed and configured Shorewall with two ISPs. I want to provide Internet access to the clients and the other connection for servers connection and NATs. I can navigate both from the ...
1
vote
1answer
619 views

Linux router frequently drops connections

Until a few months ago, I had my Linux desktop serving double duty as a router for my home network, and all was well. Then I set up a small Linux machine to act as a stand-alone router, and since ...
15
votes
5answers
10k views

SSH access to office host behind NAT router

I would like to access the ssh port of my office linux host from home. Unfortunately the host is located behind a NAT router. So, the IP address is not publicly available. There is however access to ...
0
votes
1answer
145 views

no websites loading using iptables nat

I'm using a 3G modem whilst o2 tranfer over adsl. trouble is no websites load but I can resolve domains. I enabled masquerade on the PPP0 ( modem) interface. added the server as default route for all ...
9
votes
4answers
57k views

Does mailx send mail using an SMTP relay or does it directly connect to the target SMTP server?

Suppose i send a mail using the following the following command: mailx person@x.com then does mailx first try to find out the SMTP server of my ISP for relaying the mail or does it connect ...
3
votes
2answers
4k views

Bridging my laptop's wireless and wired adaptors

I would like to be able to connect a desktop computer that does not have a wireless adapter to my wireless network. I could just run a network cable from my ADSL/wireless router to the desktop ...