Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In order for IP forwarding to be activated automatically when the system boots up.
Edit the file /etc/sysctl.conf and on the line net.ipv4.ip_forward = 0, change 0 to 1.
Code:
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
It's all message... I test my client and doesn't work yet!! shit!! I use iptables on the redhat 8 on milion times and works!! maybe I made something wrong?? I dont know.. it's make crazy!!
I'm brand new, but I read some iptables stuff, and my impression is the the Policy is suppose to be DROP and then you let in what you want, and if it doen't match the criteria then it is dropped
Yes.
But in this case, we are trying to debug the network.
By setting the three main chains to ACCEPT and leaving the Masquerade, we know that iptables is not the problem.
By the way, saruman666 if you have not found the problem.
I suggest flushing all the rules, setting the three main chains to ACCEPT and leaving only the Masquerade,
if the internet sharing does not work, then the problem is not with iptables.
>By the way, saruman666 if you have not found the problem.
>I suggest flushing all the rules, setting the three main chains to ACCEPT and leaving >only the Masquerade,
>if the internet sharing does not work, then the problem is not with iptables.
I fix the problem... I take a look on the rules and have some rules from redhat-config-securitylevel that's block forward when you set medium or high security
I need execute redhat-config-securitylevel change the level and apply the rules again!!
just use:
$echo 1 > /proc/sys/net/ipv4/ip_forward
on the file /etc/sysctl.conf I change the net.ipv4.ip_forward from 0 to 1!!
net.ipv4.ip_forward = 1
After this only use:
$/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
****DON'T USE:
/etc/init.d/iptables restart
****BEFORE SAVE YOUR RULES!!!
if you do that you will apply the default rule that is before MASQUERADE!!
so... save first:
/etc/init.d/iptables save
and then...
/etc/init.d/iptables restart
everthing's good with me now!!
and on the next time I need to pay attention on the securitylevel of redhat install! ^_^"
thanks and more thanks to everone for help me!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.