BREAKING CHANGE(proxies/nftables-proxy): remove nftables-proxy implementation, models, and utilities from the repository

This commit is contained in:
2026-02-09 17:11:37 +00:00
parent db2e2fb76e
commit 7b3009dc53
15 changed files with 9 additions and 2405 deletions

View File

@@ -730,32 +730,6 @@ interface ISmartProxyOptions {
}
```
### NfTablesProxy Class
A standalone class for managing nftables NAT rules directly (Linux only, requires root):
```typescript
import { NfTablesProxy } from '@push.rocks/smartproxy';
const nftProxy = new NfTablesProxy({
fromPort: [80, 443],
toPort: [8080, 8443],
toHost: 'backend-server',
protocol: 'tcp',
preserveSourceIP: true,
ipv6Support: true,
useIPSets: true,
qos: {
enabled: true,
maxRate: '1gbps'
}
});
await nftProxy.start(); // Apply nftables rules
const status = await nftProxy.getStatus();
await nftProxy.stop(); // Remove rules
```
## 🐛 Troubleshooting
### Certificate Issues