Skip to main content

All Questions

Tagged with
1 vote
2 answers
14k views

need to route the traffic through a specific network card

I have two network cards and they both have a different network. I need the outgoing connections to go only through a specific network card. Any help ? Update: I ran a route -n command and got this ...
rahul's user avatar
  • 116
2 votes
1 answer
440 views

DD-WRT: keep source IP after port forwarding

I just started using DD-WRT on my WNDR3700, but now all my incoming connections to a server inside the network get the same source IP as the router. How can I change this back so I get the real ...
Lasse A Karlsen's user avatar
8 votes
1 answer
10k views

Will increasing number of rules in iptables slow down my internet

How much impact will the rules have on speed, if we are using match to queue the packets.
adnan kamili's user avatar
1 vote
1 answer
1k views

internet connection gone after $ iptables -F INPUT

I have a PC with two Ethernet cards, and I was trying to configure my eth1, but when I typed $ iptables -F INPUT, the internet was gone on eth0. Does anyone has any idea how to get my internet ...
Eren's user avatar
  • 13
3 votes
1 answer
5k views

Match multiple strings in iptables

I have 2 strings, and i wish to queue the packet if it contains both the strings ( something like ("jsh"&&"gjhyg")), i tried following ways, but they don't seem to work: sudo iptables -A ...
adnan kamili's user avatar
1 vote
0 answers
171 views

How to redirect local connection to my things in IPv6 on linux?

With IPv4 I can make some program connect to my service instead of where it wants using REDIRECT and DNAT targets in OUTPUT chain in iptables (sometimes combined with -m owner) In IPv6 hovewer I don'...
Vi.'s user avatar
  • 17.3k
0 votes
1 answer
280 views

Is it possible to figure out which http request generated the corresponding response

I am using iptables to listen to tcp (http) packets. I am filtering out INPUT responses containing a matching string. Is it possible to know which http request generated the response. Assuming 10 ...
adnan kamili's user avatar
1 vote
1 answer
174 views

Separating two networks

I have two routers, R1 and R2. R1 (a stock linksys router running dd-wrt) is connected to internet and is serving internet to a network of 5 devices/PCs running a DHCP server, with a network of 192....
Farhan Ali's user avatar
2 votes
1 answer
2k views

Gateway on a virtual network interface used by LXC guests

I'm currently having some problems with configuring a gateway for a virtual network interface. Here is what I've done : I created a virtual network interface : # brctl addbr lxc0 # brctl setfd lxc0 ...
linkdd's user avatar
  • 163
3 votes
1 answer
2k views

Use port forwarding with masquerade

I'm using a debian as a router with nat configured. How can I set up port forwarding, to set an rdp server on the local network for example?
Gonzo's user avatar
  • 147
2 votes
2 answers
1k views

Iptables port mapping from two PCs to one

We have 3 PCs, two of it are connected to internet (both of it have 2 NIC) PC1: eth0 - 1.0.0.1 (external IP) eth1 - 172.16.0.1 (internal IP) PC2: eth0 - 1.0.0.2 (external IP) eth1 - 172.16.0.2 (...
Anton's user avatar
  • 33
0 votes
1 answer
115 views

NATing with a single-homed machine possible?

I have the following setup: a) a single-homed machine, A, that can see the Internet. b) other machines B, C, and D that cannot see the Internet. c) A, B, C, and D can see each other. d) all ...
Harry's user avatar
  • 851
0 votes
2 answers
994 views

How to setup IPtables to allow capture network traffic from a virtualbox VM configured with NAT

I would like to have a VirtualBox virtual machine that can't get online. I want to be able to monitor all network traffic attempts from the Linux host. So, if the virtual machine attempts to make a ...
Andrew McNicol's user avatar
1 vote
1 answer
6k views

linux drops packet when trying to route it - why?

I track packets using LOG targets for all chains of all tables and the last chain I see my packet in is the PREROUTING chain of the mangle table: mangle_PREROUTING: IN=eth0 OUT= MAC=00:16:3e:0f:01:00:...
Steffen Heil's user avatar
43 votes
1 answer
35k views

iptables vs route

What's the difference between these two tools? Can anybody tell me what the main workflow of networking behind Linux (in relation to IPv4 packet filtering, NAT and IP routing table) is?
Determinant's user avatar
  • 1,290

15 30 50 per page