I'am trying to setup nat on RHEL4 box.
I have static ip address on eth0 and 192.168.60.1 address on privat LAN (eth1)
Also I have tap0 (192.168.168.1) interface enabled and working openvpn connection to all hosts in privat LAN (including NAT box)
I have done this numerous times before. Never the less, I have problem now and I am stuck.
Gcool wrote:Plain old iptables will do just fine.
Hello everyone.
First, I'm no linux expert. I know some basics of networking and windows servers mostly. And now I want to use a Linux distro (Centos 5.4) to build up a firewall for my servers on my hosting company.
What I want to / have to configure is:
- A linux router
- Which works on transparent routing mode (I guess its opposite to NAT mode)
I am trying to open port 3306 (for remote mysql connections) on my ubuntu 12.04 server machine but for the life of me can't get the damned thing to work!
Here is what I did:
1) list current firewall rules:
$> sudo iptables -nL -v
output:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
225 16984 fail2ban-ssh t
Printer is connected via USB to server PC running OpenSUSE 11.1
Client PCs are running 11.1, XP, Vista
No problem printing from the Windoze machines
Printing is trouble free with the 11.1 client's firewall disabled, but no printer is available with firewall running.
I came across this tutorial here that describes how to monitor bandwidth using iptables.
I want to bind IPs to non-root users so that all outgoing applications will use that IP for the user.
We've started encountering an issue with iptables on our RHEL 6.3 systems in that after a reboot, when the service starts, the rules are not loaded.
I already added a rule on nat table in /etc/ufw/before.rules :
*nat
# masquerade rule for virtual box guests
-A POSTROUTING -s 192.168.56.0/24 -j MASQUERADE
COMMIT
after running:
root@parsoon:~# ufw disable && ufw enable
root@parsoon:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target