0
votes
0answers
57 views

Passing ICMP between two interfaces

I'm trying to setup routing between two network interfaces on an Ubuntu machine. The first interface is the nic, connected to my LAN. The second interface is a tunnel dev created by OpenVPN. The ...
1
vote
1answer
58 views

How to block ip forwarding for specific remote ip address

I use ubuntu as gateway for several hosts. I need advise how to block ip forwarding for specific ip address or specific ip range? I tried to block ip via ufw deny rules, but it looks like ip ...
1
vote
1answer
83 views

Ubuntu 12.04 secondary IP externally inaccesible

I have added a secondary IP to my virtual server, Ubuntu 12.04 running in OpenVZ virtual host. I used ip addr add xx.xxx.168.95/32 label venet0:1 dev venet0. When I do ifconfig the IP shows up below ...
0
votes
0answers
125 views

how to proxy to a VPN connected server with local services running?

I'm having trouble accessing services that are running on my Linux Box from outside the local network. The setup is not as simple as most tutorials describe so I'm a bit stuck. My Linux Box (running ...
0
votes
2answers
107 views

using iptables for testing application

I'm testing my webapplication which connects to two DBs. I can't stop them but I want to simulate outage of one of them. So I opened one terminal where I'm pinging DB server: ping 172.21.7.188 In ...
3
votes
1answer
6k views

Redirect requests mapped to a DNS IP Address

For this command lines: sysctl net.ipv4.ip_forward=1 iptables -t nat -A PREROUTING -p tcp --dport port -j DNAT --to-destination ip:port iptables -t nat -A POSTROUTING -j MASQUERADE I can reroute ...
2
votes
1answer
707 views

How to send packets via a pptp vpn tunnel?

I'm trying to send certain port traffic through my ppp0 interface it's a pptp vpn tunnel, First, I'm using a wireless usb interface, I connect up to my access point, then I initiate my vpn, there is ...
3
votes
2answers
3k views

'ip rule flush' breaks all connectivity

I'm configuring some network stuff, and every time I try something the connection breaks. Thinking that I must be configuring something incorrectly to break all connections, I did a bit of ...