I lost my connection!

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Gance

I lost my connection!

Post by Gance »

Hi guys!

Few days ago I tried to configurate a good proxy, but something went wrong and now I don`t know how to fix it.

Here`s what I did in the terminal:

Code: Select all

iptables -P INPUT DROP
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p udp -i eth0 --dport 53 -j ACCEPT
iptables -P FORWARD DROP
iptables -t nat -I POSTROUTING -o eth1 -j MASQUERADE
iptables-save > /etc/iptables.conf
How can I restore my internet connection the same way it was before?
I`m using Linux Mint 16.

Thank you for your help!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
perham

Re: I lost my connection!

Post by perham »

Gance wrote:Hi guys!

Few days ago I tried to configurate a good proxy, but something went wrong and now I don`t know how to fix it.

Here`s what I did in the terminal:

Code: Select all

iptables -P INPUT DROP
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p udp -i eth0 --dport 53 -j ACCEPT
iptables -P FORWARD DROP
iptables -t nat -I POSTROUTING -o eth1 -j MASQUERADE
iptables-save > /etc/iptables.conf
How can I restore my internet connection the same way it was before?
I`m using Linux Mint 16.

Thank you for your help!

Code: Select all

sudo iptables -F
sudo iptables -X
sudo iptables-save | sudo tee /etc/iptables.conf
that should reset all your iptables rules.
Locked

Return to “Networking”