netstat-nat doesnt work ?
I have installed netstat-nat in Ubuntu 12.04.3 LTS.
Code:
sudo apt-get install netstat-nat Code:
# netstat-nat All modules required for NAT are loaded. It is a NAT box. So, why netstat-nat doesnt work for me ? |
Did you run?
Quote:
|
I think I have written quite clear that it is NAT box (that means it already acts as a NAT box).
Quote:
|
Check status of your ufw
Quote:
Enable it using Quote:
netstat-nat command again. You will not get the error instead of it will give Quote:
|
Hi, thanks for reply.
It seems that the service is already running: Code:
# service ufw status |
Check the module in the directory
/lib/modules Here you will find a directory of your kernel version, if you find more than one directory and you do not know where to go, run command Quote:
if you are using ipv6, open kernel/net/ipv6/netfilter Here you can see the list of modules. Find the netfilter module name.ko file and enable it for kernel. Quote:
|
I dont think there exists any module dedicated specifically for netstat-nat.
As I written already NAT itself works. Nevertheless this is list of modules in my /lib/modules/3.8.0-33-generic/kernel/net/ipv4/netfilter Code:
# ls -al |
We do not need the module for netstat-nat
The error is Quote:
We need to enable the netfilter module in kernel to remove the error. Enable the modules which are related to netfilter. We have to enable the module nf_nat or similar one. Use modprobe. modprobe is a command (program) to add and remove modules from the Linux Kernel. |
Hi, I am not sure if you have a good understanding of my problem.
My NAT works correctly. This means all netfilter modules are loaded. What makes then you to think that some modules are missing ? |
1 Attachment(s)
|
Still having trouble... any clues?
Code:
root@x301:/lib/modules/3.13.0-27-generic/kernel/net/ipv4/netfilter# ufw status Many thanks. |
1 Attachment(s)
|
no joy !!!!
I really do appreciate you looking into this. Code:
root@x301:~# netstat-nat |
Did anyone come up with a solution here? I have the same scenario with a brand-new build of Ubuntu 14.04.
Code:
root@sprf1:/etc/init.d# lsmod | grep nat Code:
root@sprf1:/etc/init.d# netstat-nat iptables -t nat -L produces expected output, and nat traffic is flowing. I've tried this with both a MASQ rule and a SNAT rule to no avail. |
I ran into similar problem on ubuntu 14.04. After digging a bit I figured it's because /proc/net/ip_conntrack is removed (or say deprecated)
simply execute: strace -f netstat-nat there are two entries like: open("/proc/net/nf_conntrack", O_RDONLY) = -1 ENOENT (No such file or directory) open("/proc/net/ip_conntrack", O_RDONLY) = -1 ENOENT (No such file or directory) then comes the failure messages: write(1, "Could not read info about connec"..., 111Could not read info about connections from the kernel, make sure netfilter is enabled in kernel or by modules. ) = 111 so it is obvious the netstat-nat in apt repository is still using the old proc file, which causes the problem on my server. Using conntrack instead solves the problem. Hope it helps people who still are confused. |
All times are GMT -5. The time now is 04:12 PM. |