Quote:
Originally Posted by Techno T
Thanks I deleted the script and booted up and the problem is still there even with the firewall turned off the problem is still the same. It’s something more basic and certainly should not be that hard to fix, strange can’t quite work what it could be.
|
Firstly did you delete the existing chains from iptables ?
Do a iptables -nL to check of what the current rules are set to.
Also run this script to reset the iptables back to the default values
Code:
# !/bin/bash
# script to flush firewall
# flush all tables
iptables -F
iptables -X
iptables -t nat -X
# reset default policies on filter table
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
# reset default policies on nat table
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
echo
iptables -nL
Also to set the IPV4 forwarding to permanent , edit the /etc/sysctl.conf and add the line
net.ipv4.ip_forward = 1
( it will already be there , just change the 0 to 1 )
You may just have some basic problem when implimenting your iptables , part of the problem is to work out the logic for what you want to do with the packets.
Here is a tutorial about iptables , it is fairly long and detailed but it is worth a read.
Iptables Tutorial 1.2.2
.